FreeCalypso > hg > gsm-codec-lib
annotate libtwamr/typedef.h @ 353:b252d74da6c6
.hgignore: add libtwamr/namespace.h (now generated)
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 05 May 2024 21:32:59 +0000 |
parents | 57b4053559ff |
children | 4184ccc136a3 |
rev | line source |
---|---|
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
1 /* adaptation between stdint types and those used by ETSI/3GPP AMR code */ |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
2 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
3 #ifndef typedef_h |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
4 #define typedef_h |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
5 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
6 #include <stdint.h> |
38
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 typedef int16_t Word16; |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 typedef int32_t Word32; |
38326102fc43
libgsmefr: beginning to integrate code from ETSI
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 typedef uint8_t Flag; |
48
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
11 |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
12 /* Struct for storing pseudo floating point exponent and mantissa */ |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
13 struct _fp |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
14 { |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
15 Word16 e; /* exponent */ |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
16 Word16 m; /* mantissa */ |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
17 }; |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
18 |
af4b075d0313
libgsmefr: encoder state structure finished in first pass
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
19 typedef struct _fp Pfloat; |
252
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
20 |
57b4053559ff
libtwamr: beginning of project
Mychaela Falconia <falcon@freecalypso.org>
parents:
48
diff
changeset
|
21 #endif /* include guard */ |