FreeCalypso > hg > gsm-codec-lib
comparison libgsmhr1/typedefs.h @ 572:02a3c88b415d
libgsmhr1/typedefs.h: don't use long/short types
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Feb 2025 08:52:58 +0000 |
parents | 446a4a2955ba |
children |
comparison
equal
deleted
inserted
replaced
571:c6d0b1a7281e | 572:02a3c88b415d |
---|---|
7 #ifndef __TYPEDEFS | 7 #ifndef __TYPEDEFS |
8 #define __TYPEDEFS | 8 #define __TYPEDEFS |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #define LW_SIGN (long)0x80000000 /* sign bit */ | 12 #define LW_SIGN (int32_t)0x80000000 /* sign bit */ |
13 #define LW_MIN (long)0x80000000 | 13 #define LW_MIN (int32_t)0x80000000 |
14 #define LW_MAX (long)0x7fffffff | 14 #define LW_MAX (int32_t)0x7fffffff |
15 | 15 |
16 #define SW_SIGN (short)0x8000 /* sign bit for Shortword type */ | 16 #define SW_SIGN (int16_t)0x8000 /* sign bit for Shortword type */ |
17 #define SW_MIN (short)0x8000 /* smallest Ram */ | 17 #define SW_MIN (int16_t)0x8000 /* smallest Ram */ |
18 #define SW_MAX (short)0x7fff /* largest Ram */ | 18 #define SW_MAX (int16_t)0x7fff /* largest Ram */ |
19 | 19 |
20 /* Definition of Types * | 20 /* Definition of Types * |
21 ***********************/ | 21 ***********************/ |
22 | 22 |
23 typedef int32_t Longword; /* 32 bit "accumulator" (L_*) */ | 23 typedef int32_t Longword; /* 32 bit "accumulator" (L_*) */ |