liberasurecode 1.8.0
Erasure Code API library
Loading...
Searching...
No Matches
Macros | Functions | Variables
rs_galois.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define PRIM_POLY   0x1100b
 
#define FIELD_SIZE   (1 << 16)
 
#define GROUP_SIZE   (FIELD_SIZE - 1)
 

Functions

 __attribute__ ((visibility("internal")))
 
static int rs_galois_div (int x, int y)
 

Variables

static int * log_table = NULL
 
static int * ilog_table = NULL
 
static int * ilog_table_begin = NULL
 
static int init_counter = 0
 

Macro Definition Documentation

◆ FIELD_SIZE

#define FIELD_SIZE   (1 << 16)

Definition at line 41 of file rs_galois.c.

◆ GROUP_SIZE

#define GROUP_SIZE   (FIELD_SIZE - 1)

Definition at line 42 of file rs_galois.c.

◆ PRIM_POLY

#define PRIM_POLY   0x1100b

Definition at line 40 of file rs_galois.c.

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("internal"))  )

Definition at line 49 of file rs_galois.c.

References FIELD_SIZE, GROUP_SIZE, ilog_table, ilog_table_begin, init_counter, log_table, and PRIM_POLY.

◆ rs_galois_div()

static int rs_galois_div ( int  x,
int  y 
)
static

Definition at line 104 of file rs_galois.c.

References ilog_table, and log_table.

Variable Documentation

◆ ilog_table

int* ilog_table = NULL
static

Definition at line 45 of file rs_galois.c.

Referenced by __attribute__(), and rs_galois_div().

◆ ilog_table_begin

int* ilog_table_begin = NULL
static

Definition at line 46 of file rs_galois.c.

Referenced by __attribute__().

◆ init_counter

int init_counter = 0
static

Definition at line 47 of file rs_galois.c.

Referenced by __attribute__().

◆ log_table

int* log_table = NULL
static

Definition at line 44 of file rs_galois.c.

Referenced by __attribute__(), and rs_galois_div().