progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / math / group-guts.h
index c34d89c..c9f28c4 100644 (file)
 #  include "gfreduce.h"
 #endif
 
+#define GROUP_GUTS_MPSTRUCT
+typedef struct { mp *x; } ge_prime;
+typedef struct { mp *x; } ge_bin;
+
 #ifndef CATACOMB_GROUP_H
 #  include "group.h"
 #endif
 /*----- Data structures ---------------------------------------------------*/
 
 typedef struct gctx_prime {
-  group g;
-  mp *gen;
+  struct group_ g;
+  ge_prime gen;
   mpmont mm;
+  ge_prime i;
 } gctx_prime;
 
 typedef struct gctx_ec {
-  group g;
+  struct group_ g;
   ec id, gen;
   ec_info ei;
 } gctx_ec;
 
 typedef struct gctx_bin {
-  group g;
-  mp *gen;
-  mp *one;
+  struct group_ g;
+  ge_bin gen;
+  ge_bin one;
   gfreduce r;
 } gctx_bin;