My Project
|
Operations in GF, where GF is a finite field of size less than 2^16 represented by a root of Conway polynomial. More...
Go to the source code of this file.
Macros | |
#define | OSTREAM std::ostream |
Functions | |
bool | gf_iszero (int a) |
bool | gf_iszero (long a) |
bool | gf_isone (int a) |
bool | gf_isone (long a) |
int | gf_int2gf (int i) |
long | gf_int2gf (long i) |
int | gf_zero () |
int | gf_one () |
int | gf_sign (int a) |
int | gf_neg (int a) |
int | gf_add (int a, int b) |
int | gf_sub (int a, int b) |
int | gf_mul (int a, int b) |
long | gf_mul (long a, int b) |
int | gf_div (int a, int b) |
int | gf_inv (int a) |
int | gf_power (int a, int n) |
long | gf_power (long a, int n) |
void | gf_setcharacteristic (int p, int n, char name) |
long | gf_gf2ff (long a) |
int | gf_gf2ff (int a) |
bool | gf_isff (long a) |
bool | gf_isff (int a) |
Variables | |
EXTERN_VAR int | gf_q |
EXTERN_VAR int | gf_p |
EXTERN_VAR int | gf_n |
EXTERN_VAR int | gf_q1 |
EXTERN_VAR int | gf_m1 |
EXTERN_VAR char | gf_name |
EXTERN_VAR unsigned short * | gf_table |
EXTERN_INST_VAR CanonicalForm | gf_mipo |
Operations in GF, where GF is a finite field of size less than 2^16 represented by a root of Conway polynomial.
Uses look up tables for addition.
Definition in file gfops.h.
|
inline |
|
inline |
int gf_gf2ff | ( | int | a | ) |
Definition at line 231 of file gfops.cc.
long gf_gf2ff | ( | long | a | ) |
Definition at line 209 of file gfops.cc.
|
inline |
|
inline |
|
inline |
bool gf_isff | ( | int | a | ) |
bool gf_isff | ( | long | a | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void gf_setcharacteristic | ( | int | p, |
int | n, | ||
char | name | ||
) |
|
inline |
EXTERN_VAR int gf_m1 |
EXTERN_INST_VAR CanonicalForm gf_mipo |
EXTERN_VAR int gf_n |
EXTERN_VAR char gf_name |
EXTERN_VAR int gf_p |
EXTERN_VAR int gf_q |
EXTERN_VAR int gf_q1 |
EXTERN_VAR unsigned short* gf_table |