18 #ifndef BPUT_GF2XTYPES_H
19 #define BPUT_GF2XTYPES_H
63 #define BPU_gf2xPolyNull(d_pointer) memset((void *) ((d_pointer)->coef), 0, sizeof(BPU_T_GF2_16x)*((d_pointer)->max_deg + 1));\
130 #endif // BPUT_GF2XTYPES_H
struct _BPU_T_GF2_16x_Vector BPU_T_GF2_16x_Vector
int BPU_gf2xPolyResize(BPU_T_GF2_16x_Poly *p, int16_t max_deg)
BPU_gf2xPolyResize Resize polynomial, increase max deg.
void BPU_gf2xMatFree(BPU_T_GF2_16x_Matrix **m)
Free dynamically or statically allocated matrix.
int BPU_gf2xPolyMallocCoef(BPU_T_GF2_16x_Poly *p, int16_t max_deg)
BPU_gf2xPolyMallocCoef Malloc internal coeficients for polynomial.
BPU_T_GF2_16x ** elements
all element of matrix
int BPU_gf2xVecMalloc(BPU_T_GF2_16x_Vector **vec, int size)
BPU_gf2xVecMalloc Malloc vector structure.
void BPU_gf2xPolyFree(BPU_T_GF2_16x_Poly **p)
uint8_t len
number of elements
struct _BPU_T_GF2_16x_Matrix BPU_T_GF2_16x_Matrix
int BPU_gf2xMatMalloc(BPU_T_GF2_16x_Matrix **m, int rows, int cols)
Allocate memory for matrix.
void BPU_gf2xVecFree(BPU_T_GF2_16x_Vector **vec)
BPU_gf2xVecFree Free vector structure.
BPU_T_GF2_16x * coef
Polynomial over GF2m.
struct _BPU_T_GF2_16x_Poly BPU_T_GF2_16x_Poly
void BPU_gf2xMatNull(BPU_T_GF2_16x_Matrix *mat)
int BPU_gf2xPolyMalloc(BPU_T_GF2_16x_Poly **p, int16_t max_deg)