18 #include <NTL/config.h>
24 #define FACTORY_INT64 long int
26 #define FACTORY_INT64 long long int
42 #if defined(NTL_AVOID_BRANCHING)
54 #if defined(NTL_AVOID_BRANCHING)
87 #if defined(NTL_AVOID_BRANCHING)
97 inline int ff_add (
const int a,
const int b )
100 #if defined(NTL_AVOID_BRANCHING)
112 inline int ff_sub (
const int a,
const int b )
115 #if defined(NTL_AVOID_BRANCHING)
130 #if defined(NTL_AVOID_BRANCHING)
139 inline int ff_mul (
const int a,
const int b )
146 return ff_norm ( (
long)a * (
long)
b );
163 inline int ff_div (
const int a,
const int b )
static const int SW_SYMMETRIC_FF
set to 1 for symmetric representation over F_q
INST_VAR CFSwitches cf_glob_switches
bool isOn(int s) const
check if 's' is on
int ff_symmetric(const int a)
EXTERN_VAR int ff_halfprime
void ff_setprime(const int)
EXTERN_VAR short * ff_invtab
int ff_add(const int a, const int b)
int ff_div(const int a, const int b)
int ff_mul(const int a, const int b)
int ff_sub(const int a, const int b)