private.h File Reference
#include <memory.h>
#include "gsm.h"
Define Documentation
#define GSM_MAGIC 0xD /* 13 kbit/s RPE-LTP */
|
|
#define MIN_WORD (-32767 - 1)
|
|
#define SASR |
( |
x, |
|
|
by |
|
) |
((x) >> (by))
|
|
#define SASL |
( |
x, |
|
|
by |
|
) |
((x) << (by))
|
|
#define GSM_ADD |
( |
a, |
|
|
b |
|
) |
(gsmword)((ltmp = (longword)(a) + (longword)(b)) >= MAX_WORD ? MAX_WORD : ltmp <= MIN_WORD ? MIN_WORD : ltmp)
|
|
#define GSM_SUB |
( |
a, |
|
|
b |
|
) |
(gsmword)((ltmp = (longword)(a) - (longword)(b)) >= MAX_WORD ? MAX_WORD : ltmp <= MIN_WORD ? MIN_WORD : ltmp)
|
|
#define GSM_ABS |
( |
a |
|
) |
(gsmword)((a) < 0 ? -(a) : (a))
|
|
Typedef Documentation
Function Documentation