summaryrefslogtreecommitdiffstats
path: root/.gitmodules
Commit message (Expand)AuthorAge
* Benchmarks: Move thrashing task to a submodule and update pathsJoshua Bakita2021-03-09
* Add submodules. Remember to use git clone --recurse-submodules now.Joshua Bakita2020-10-22
19-10-07 19:13:39 -0400 Reorganize and commit all the modified TACLeBench code and run scripts' href='/cgit/cgit.cgi/mc2-scripts-and-benchmarks.git/commit/baseline/source/gsm_dec/private.h?h=rtas22&id=386b7d3366f1359a265da207a9cafa3edf553b64'>386b7d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44











































                                                                   
#ifndef GSM_DEC_PRIVATE_H
#define GSM_DEC_PRIVATE_H

typedef short     word;   /* 16 bit signed int  */
typedef long      longword; /* 32 bit signed int  */

typedef unsigned short    uword;    /* unsigned word  */
typedef unsigned long   ulongword;  /* unsigned longword  */

/*   Table 4.6   Normalized direct mantissa used to compute xM/xmax
*/
/* i  0      1      2      3      4      5      6      7   */
word gsm_dec_FAC[8] = { 
  18431, 20479, 22527, 24575, 26623, 28671, 30719, 32767 };

struct gsm_state {
  word    dp0[ 280 ];
  word    z1;   /* preprocessing.c, Offset_com. */
  longword  L_z2;   /*                  Offset_com. */
  int   mp;   /*                  Preemphasis */
  word   u[8];   /* short_term_aly_filter.c  */
  word    LARpp[2][8];  /*                              */
  word    j;    /*                              */
  word    nrp; /* 40 */ /* long_term.c, synthesis */
  word    v[9];   /* short_term.c, synthesis  */
  word    msr;    /* decoder.c, Postprocessing  */
};


#define MIN_WORD  ((-32767)-1)
#define MAX_WORD  ( 32767)

#define MIN_LONGWORD  ((-2147483647)-1)
#define MAX_LONGWORD  ( 2147483647)

/* >> is a signed arithmetic shift right */
#define SASR(x, by) ((x) >> (by))

/*   Table 4.3b   Quantization levels of the LTP gain quantizer
*/
/* bc         0          1        2          3      */
word gsm_dec_QLB[4] = {  3277,    11469,  21299,     32767  };

#endif /* GSM_DEC_PRIVATE_H */