/* Copyright (C) 2021 Alessandro Languasco */ /*-*- compile-command: "/usr/bin/gcc -c -o mainMaxLMinL.gp.o -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -I\"/usr/local/include\" mainMaxLMinL.gp.c && /usr/bin/gcc -o mainMaxLMinL.gp.so -bundle -undefined dynamic_lookup -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC mainMaxLMinL.gp.o "; -*-*/ #include /* GP;install("my_init_mainMaxLMinL","v","init_mainMaxLMinL","./mainMaxLMinL.gp.so"); GP;install("my_mainMaxLMinL","vD0,G,","mainMaxLMinL","./mainMaxLMinL.gp.so"); */ void my_init_mainMaxLMinL(void); void my_mainMaxLMinL(GEN my_q); /*End of prototype*/ int main() { long a; GEN q; pari_init(40000000,0); /* memory size, primes precomputed*/ my_init_mainMaxLMinL(); printf("Give me an odd prime = "); scanf("%ld",&a); q = stoi(a); my_mainMaxLMinL(q); /* ndec2prec(38): converts a number of decimal digits to a number of codewords */ pari_close(); return 0; } /* MAC /usr/bin/gcc MaxLMinL_main.c mainMaxLMinL.gp.o -g -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -I\"/usr/local/include\" -L/usr/local/lib -lpari -o MaxLMinL_main.exe pc ufficio /usr/bin/gcc MaxLMinL_main.c mainMaxLMinL.gp.o -g -O3 -Wall -Wno-unused-result -fno-strict-aliasing -fomit-frame-pointer -fPIC -I\"/usr/local/include\"-lgmp -L/usr/local/lib -lpari -o MaxLMinL_main.exe */