Motr  M0
parity_ops.h File Reference
#include <isa-l.h>
#include "lib/assert.h"
Include dependency graph for parity_ops.h:

Go to the source code of this file.

Macros

#define __MOTR_SNS_PARITY_OPS_H__
 
#define M0_PARITY_ZERO   (0)
 
#define M0_PARITY_GALOIS_W   (8)
 

Typedefs

typedef int m0_parity_elem_t
 

Functions

M0_INTERNAL m0_parity_elem_t m0_parity_pow (m0_parity_elem_t x, m0_parity_elem_t p)
 
static m0_parity_elem_t m0_parity_add (m0_parity_elem_t x, m0_parity_elem_t y)
 
static m0_parity_elem_t m0_parity_sub (m0_parity_elem_t x, m0_parity_elem_t y)
 
static m0_parity_elem_t m0_parity_mul (m0_parity_elem_t x, m0_parity_elem_t y)
 
static m0_parity_elem_t m0_parity_div (m0_parity_elem_t x, m0_parity_elem_t y)
 
static m0_parity_elem_t m0_parity_lt (m0_parity_elem_t x, m0_parity_elem_t y)
 
static m0_parity_elem_t m0_parity_gt (m0_parity_elem_t x, m0_parity_elem_t y)
 

Macro Definition Documentation

◆ __MOTR_SNS_PARITY_OPS_H__

#define __MOTR_SNS_PARITY_OPS_H__

Definition at line 26 of file parity_ops.h.

◆ M0_PARITY_GALOIS_W

#define M0_PARITY_GALOIS_W   (8)

Definition at line 34 of file parity_ops.h.

◆ M0_PARITY_ZERO

#define M0_PARITY_ZERO   (0)

Definition at line 33 of file parity_ops.h.

Typedef Documentation

◆ m0_parity_elem_t

typedef int m0_parity_elem_t

Definition at line 36 of file parity_ops.h.

Function Documentation

◆ m0_parity_add()

static m0_parity_elem_t m0_parity_add ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 41 of file parity_ops.h.

Here is the caller graph for this function:

◆ m0_parity_div()

static m0_parity_elem_t m0_parity_div ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 60 of file parity_ops.h.

Here is the caller graph for this function:

◆ m0_parity_gt()

static m0_parity_elem_t m0_parity_gt ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 74 of file parity_ops.h.

◆ m0_parity_lt()

static m0_parity_elem_t m0_parity_lt ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 69 of file parity_ops.h.

Here is the caller graph for this function:

◆ m0_parity_mul()

static m0_parity_elem_t m0_parity_mul ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 51 of file parity_ops.h.

Here is the caller graph for this function:

◆ m0_parity_pow()

M0_INTERNAL m0_parity_elem_t m0_parity_pow ( m0_parity_elem_t  x,
m0_parity_elem_t  p 
)

Definition at line 30 of file parity_ops.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_parity_sub()

static m0_parity_elem_t m0_parity_sub ( m0_parity_elem_t  x,
m0_parity_elem_t  y 
)
inlinestatic

Definition at line 46 of file parity_ops.h.

Here is the caller graph for this function: