My Project
|
operations in a finite prime field F_p. More...
Go to the source code of this file.
Macros | |
#define | FACTORY_INT64 long int |
Functions | |
int | ff_newinv (const int) |
int | ff_biginv (const int) |
void | ff_setprime (const int) |
int | ff_norm (const int a) |
long | ff_norm (const long a) |
int | ff_symmetric (const int a) |
long | ff_symmetric (const long a) |
int | ff_add (const int a, const int b) |
int | ff_sub (const int a, const int b) |
int | ff_neg (const int a) |
int | ff_mul (const int a, const int b) |
int | ff_inv (const int a) |
int | ff_div (const int a, const int b) |
Variables | |
EXTERN_VAR int | ff_prime |
EXTERN_VAR int | ff_halfprime |
EXTERN_VAR short * | ff_invtab |
EXTERN_VAR bool | ff_big |
operations in a finite prime field F_p.
The largest supported p is 536870909, i.e. the largest prime less than 2^29.
Definition in file ffops.h.
int ff_biginv | ( | const int | a | ) |
Definition at line 72 of file ffops.cc.
|
inline |
|
inline |
int ff_newinv | ( | const int | a | ) |
Definition at line 30 of file ffops.cc.
|
inline |
|
inline |
|
inline |
Definition at line 67 of file ffops.h.
|
inline |
EXTERN_VAR bool ff_big |
EXTERN_VAR int ff_halfprime |
EXTERN_VAR short* ff_invtab |
EXTERN_VAR int ff_prime |