chiark / gitweb /
math/, pub/: Generate primes with exactly the right size.
[catacomb] / math / limlee.h
index d22b5a7ec2b6215243c0f78c2b66d0d5f8e01f42..b46ae5c9c3d7806cc568ad6d6ade8b77cd30721c 100644 (file)
@@ -77,7 +77,13 @@ typedef struct limlee_stepctx {
   octet *c;                            /* Combination byte-flag vector */
   unsigned long seq;                   /* Sequence number for primes */
   size_t poolsz;                       /* Size of the small-prime pool */
-  dstr d;                              /* String for subprime name */
+  union {
+    dstr d;                            /* Obsolete; for ABI compat */
+    struct {
+      char *name;                      /* Name, for @primeops@ */
+      int steps, disp;                 /* Track how good @qq@ is */
+    } s;
+  } u;
   limlee_factor qq;                    /* Big prime to pick up slack */
 
 } limlee_stepctx;