![]() |
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) |
void | gf_print (OSTREAM &os, 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) |
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.
Definition at line 133 of file gfops.h.
Definition at line 231 of file gfops.cc.
Definition at line 209 of file gfops.cc.
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 |