PandA-2024.02
Macros | Functions | Variables
add.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define saturate(x)   ((x) < MIN_WORD ? MIN_WORD : (x) > MAX_WORD ? MAX_WORD: (x))
 

Functions

word gsm_add (word a, word b)
 
word gsm_mult (word a, word b)
 
word gsm_mult_r (word a, word b)
 
word gsm_abs (word a)
 
word gsm_norm (longword a)
 
word gsm_div (word num, word denum)
 

Variables

const unsigned char bitoff [256]
 

Macro Definition Documentation

◆ saturate

#define saturate (   x)    ((x) < MIN_WORD ? MIN_WORD : (x) > MAX_WORD ? MAX_WORD: (x))

Definition at line 31 of file add.c.

Referenced by gsm_add().

Function Documentation

◆ gsm_abs()

word gsm_abs ( word  a)

Definition at line 66 of file add.c.

References MAX_WORD, and MIN_WORD.

◆ gsm_add()

word gsm_add ( word  a,
word  b 
)

Definition at line 35 of file add.c.

References saturate, and sum.

◆ gsm_div()

word gsm_div ( word  num,
word  denum 
)

Definition at line 126 of file add.c.

References k.

◆ gsm_mult()

word gsm_mult ( word  a,
word  b 
)

Definition at line 43 of file add.c.

References MAX_WORD, MIN_WORD, and SASR.

◆ gsm_mult_r()

word gsm_mult_r ( word  a,
word  b 
)

Definition at line 52 of file add.c.

References MAX_WORD, and MIN_WORD.

◆ gsm_norm()

word gsm_norm ( longword  a)

Definition at line 91 of file add.c.

References bitoff.

Variable Documentation

◆ bitoff

const unsigned char bitoff[256]
Initial value:
= {
8, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 71 of file add.c.


Generated on Mon Feb 12 2024 13:03:07 for PandA-2024.02 by doxygen 1.8.13