FreeCalypso > hg > gsm-codec-lib
changeset 499:446a4a2955ba
libgsmhr1/typedefs.h: initial port
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 19 Jun 2024 00:50:29 +0000 |
parents | 65f672c43dc8 |
children | 66fb1fd032e6 |
files | libgsmhr1/typedefs.h |
diffstat | 1 files changed, 5 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmhr1/typedefs.h Wed Jun 19 00:49:48 2024 +0000 +++ b/libgsmhr1/typedefs.h Wed Jun 19 00:50:29 2024 +0000 @@ -7,8 +7,7 @@ #ifndef __TYPEDEFS #define __TYPEDEFS -#define DATE "August 8, 1996 " -#define VERSION "Version 4.2 " +#include <stdint.h> #define LW_SIGN (long)0x80000000 /* sign bit */ #define LW_MIN (long)0x80000000 @@ -21,10 +20,10 @@ /* Definition of Types * ***********************/ -typedef long int Longword; /* 32 bit "accumulator" (L_*) */ -typedef short int Shortword; /* 16 bit "register" (sw*) */ -typedef short int ShortwordRom; /* 16 bit ROM data (sr*) */ -typedef long int LongwordRom; /* 32 bit ROM data (L_r*) */ +typedef int32_t Longword; /* 32 bit "accumulator" (L_*) */ +typedef int16_t Shortword; /* 16 bit "register" (sw*) */ +typedef int16_t ShortwordRom; /* 16 bit ROM data (sr*) */ +typedef int32_t LongwordRom; /* 32 bit ROM data (L_r*) */ struct NormSw { /* normalized Shortword fractional @@ -48,14 +47,5 @@ * factor */ #define OVERHANG 8 /* vad parameter */ -#define strStr strStr16 - -/* global variables */ -/********************/ - -extern int giFrmCnt; /* 0,1,2,3,4..... */ -extern int giSfrmCnt; /* 0,1,2,3 */ - -extern int giDTXon; /* DTX Mode on/off */ #endif