Initialize Tizen 2.3
[external/opencore-amr.git] / opencore / codecs_v2 / audio / gsm_amr / amr_nb / common / src / pow2_tbl.cpp
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
20
21     3GPP TS 26.073
22     ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23     Available from http://www.3gpp.org
24
25 (C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)
26 Permission to distribute, modify and use this file under the standard license
27 terms listed above has been obtained from the copyright holder.
28 ****************************************************************************************/
29 /*
30
31  Filename: pow2_tbl.cpp
32
33 ------------------------------------------------------------------------------
34  MODULE DESCRIPTION
35
36  This file contains the declaration for log2_tbl[] used by the Pow2() function.
37
38 ------------------------------------------------------------------------------
39 */
40
41 /*----------------------------------------------------------------------------
42 ; INCLUDES
43 ----------------------------------------------------------------------------*/
44 #include "pow2.h"
45
46 /*--------------------------------------------------------------------------*/
47 #ifdef __cplusplus
48 extern "C"
49 {
50 #endif
51
52     /*----------------------------------------------------------------------------
53     ; MACROS
54     ; [Define module specific macros here]
55     ----------------------------------------------------------------------------*/
56
57     /*----------------------------------------------------------------------------
58     ; DEFINES
59     ; [Include all pre-processor statements here. Include conditional
60     ; compile variables also.]
61     ----------------------------------------------------------------------------*/
62
63     /*----------------------------------------------------------------------------
64     ; LOCAL FUNCTION DEFINITIONS
65     ; [List function prototypes here]
66     ----------------------------------------------------------------------------*/
67
68     /*----------------------------------------------------------------------------
69     ; LOCAL VARIABLE DEFINITIONS
70     ; [Variable declaration - defined here and used outside this module]
71     ----------------------------------------------------------------------------*/
72
73     const Word16 pow2_tbl[33] =
74     {
75         16384, 16743, 17109, 17484, 17867, 18258, 18658, 19066, 19484, 19911,
76         20347, 20792, 21247, 21713, 22188, 22674, 23170, 23678, 24196, 24726,
77         25268, 25821, 26386, 26964, 27554, 28158, 28774, 29405, 30048, 30706,
78         31379, 32066, 32767
79     };
80
81     /*--------------------------------------------------------------------------*/
82 #ifdef __cplusplus
83 }
84 #endif
85
86 /*
87 ------------------------------------------------------------------------------
88  FUNCTION NAME:
89 ------------------------------------------------------------------------------
90  INPUT AND OUTPUT DEFINITIONS
91
92  Inputs:
93     None
94
95  Outputs:
96     None
97
98  Returns:
99     None
100
101  Global Variables Used:
102     None
103
104  Local Variables Needed:
105     None
106
107 ------------------------------------------------------------------------------
108  FUNCTION DESCRIPTION
109
110  None
111
112 ------------------------------------------------------------------------------
113  REQUIREMENTS
114
115  None
116
117 ------------------------------------------------------------------------------
118  REFERENCES
119
120  [1] pow2.tab,  UMTS GSM AMR speech codec, R99 - Version 3.2.0, March 2, 2001
121
122 ------------------------------------------------------------------------------
123  PSEUDO-CODE
124
125
126 ------------------------------------------------------------------------------
127  CAUTION [optional]
128  [State any special notes, constraints or cautions for users of this function]
129
130 ------------------------------------------------------------------------------
131 */
132
133 /*----------------------------------------------------------------------------
134 ; FUNCTION CODE
135 ----------------------------------------------------------------------------*/
136