LMMS
Loading...
Searching...
No Matches
add.c File Reference
#include <stdio.h>
#include <assert.h>
#include "private.h"
#include "gsm.h"
#include "proto.h"

Macros

#define saturate(x)

Functions

word gsm_add P2 ((a, b), word a, word b)
word gsm_abs P1 ((a), word a)
longword gsm_L_add P2 ((a, b), longword a, longword b)
word gsm_norm P1 ((a), longword a)
longword gsm_L_asl (longword a, int n)
word gsm_asr (word a, int n)
word gsm_asl (word a, int n)
longword gsm_L_asr (longword a, int n)
word gsm_div P2 ((num, denum), word num, word denum)

Variables

static unsigned char const bitoff [256]

Macro Definition Documentation

◆ saturate

#define saturate ( x)
Value:
((x) < MIN_WORD ? MIN_WORD : (x) > MAX_WORD ? MAX_WORD: (x))
unsigned x[BMAX+1]
Definition inflate.c:1586
#define MIN_WORD
Definition private.h:54
#define MAX_WORD
Definition private.h:55

Function Documentation

◆ gsm_asl()

word gsm_asl ( word a,
int n )

◆ gsm_asr()

word gsm_asr ( word a,
int n )

◆ gsm_L_asl()

longword gsm_L_asl ( longword a,
int n )

◆ gsm_L_asr()

longword gsm_L_asr ( longword a,
int n )

◆ P1() [1/2]

word gsm_norm P1 ( (a) ,
longword a )

◆ P1() [2/2]

word gsm_abs P1 ( (a) ,
word a )

◆ P2() [1/3]

longword gsm_L_sub P2 ( (a, b) ,
longword a,
longword b )

◆ P2() [2/3]

longword gsm_L_mult P2 ( (a, b) ,
word a,
word b )

◆ P2() [3/3]

word gsm_div P2 ( (num, denum) ,
word num,
word denum )

Variable Documentation

◆ bitoff

unsigned char const bitoff[256]
static
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
}