diff options
| author | J08nY | 2017-02-05 03:59:52 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-05 03:59:52 +0100 |
| commit | 763fc80153c5e9287f1b0f0609b11fb4f50c90ab (patch) | |
| tree | 5cd6e7acc4512cca65bcc16a74f3b63879b2d3bc /src/gp.h | |
| parent | 3d9bf583ccc5eea61c5f78f52d1e2073daee924c (diff) | |
| download | ecgen-0.2.0.tar.gz ecgen-0.2.0.tar.zst ecgen-0.2.0.zip | |
ecgen v0.2: major rewrite0.2.0
Diffstat (limited to '')
| -rw-r--r-- | src/gp.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gp.h b/src/gp.h new file mode 100644 index 0000000..c81c4c1 --- /dev/null +++ b/src/gp.h @@ -0,0 +1,28 @@ +#ifndef GP_H +#define GP_H +/*-*- compile-command: "cc -c -o gp/gp.gp.o -g -O3 -Wall -fomit-frame-pointer + * -fno-strict-aliasing -fPIC -I"/usr/include/x86_64-linux-gnu" gp/gp.gp.c && cc + * -o gp/gp.gp.so -shared -g -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing + * -fPIC -Wl,-shared -Wl,-z,relro gp/gp.gp.o -lc -lm -L/usr/lib/x86_64-linux-gnu + * -lpari"; -*-*/ +#include <pari/pari.h> +/* +GP;install("init_gp","v","init_gp","./gp/gp.gp.so"); +GP;install("random_primer","G","random_primer","./gp/gp.gp.so"); +GP;install("random_prime","L","random_prime","./gp/gp.gp.so"); +GP;install("random_intr","G","random_intr","./gp/gp.gp.so"); +GP;install("random_int","L","random_int","./gp/gp.gp.so"); +GP;install("list_to_vec","G","list_to_vec","./gp/gp.gp.so"); +GP;install("prime_upto","G","prime_upto","./gp/gp.gp.so"); +GP;install("invalid","GGGGp","invalid","./gp/gp.gp.so"); +*/ +void init_gp(void); +GEN random_primer(GEN range); +GEN random_prime(long bits); +GEN random_intr(GEN range); +GEN random_int(long bits); +GEN list_to_vec(GEN l); +GEN prime_upto(GEN bound); +GEN invalid(GEN coeffs, GEN field, GEN primes, GEN bits, long prec); +/*End of prototype*/ +#endif //GP_H |
