Initialize Tizen 2.3
[external/opencore-amr.git] / opencore / codecs_v2 / audio / gsm_amr / amr_nb / common / src / sqrt_l_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: sqrt_l_tbl.cpp
32
33 ------------------------------------------------------------------------------
34  MODULE DESCRIPTION
35
36  This file contains the declaration for sqrt_l_table[] used by the sqrt_l_exp
37  function.
38
39     sqrt_l_tbl[i] = sqrt((i+16)*2^-6) * 2^15, i.e. sqrt(x) scaled Q15
40
41  ------------------------------------------------------------------------------
42 */
43
44 /*----------------------------------------------------------------------------
45 ; INCLUDES
46 ----------------------------------------------------------------------------*/
47 #include "sqrt_l.h"
48
49 /*--------------------------------------------------------------------------*/
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif
54
55     /*----------------------------------------------------------------------------
56     ; MACROS
57     ; [Define module specific macros here]
58     ----------------------------------------------------------------------------*/
59
60     /*----------------------------------------------------------------------------
61     ; DEFINES
62     ; [Include all pre-processor statements here. Include conditional
63     ; compile variables also.]
64     ----------------------------------------------------------------------------*/
65
66     /*----------------------------------------------------------------------------
67     ; LOCAL FUNCTION DEFINITIONS
68     ; [List function prototypes here]
69     ----------------------------------------------------------------------------*/
70
71     /*----------------------------------------------------------------------------
72     ; LOCAL VARIABLE DEFINITIONS
73     ; [Variable declaration - defined here and used outside this module]
74     ----------------------------------------------------------------------------*/
75     const Word16 sqrt_l_tbl[50] =
76     {
77         16384, 16888, 17378, 17854, 18318, 18770, 19212, 19644, 20066, 20480,
78         20886, 21283, 21674, 22058, 22435, 22806, 23170, 23530, 23884, 24232,
79         24576, 24915, 25249, 25580, 25905, 26227, 26545, 26859, 27170, 27477,
80         27780, 28081, 28378, 28672, 28963, 29251, 29537, 29819, 30099, 30377,
81         30652, 30924, 31194, 31462, 31727, 31991, 32252, 32511, 32767, 32767
82     };
83
84
85     /*--------------------------------------------------------------------------*/
86 #ifdef __cplusplus
87 }
88 #endif
89
90 /*
91 ------------------------------------------------------------------------------
92  FUNCTION NAME:
93 ------------------------------------------------------------------------------
94  INPUT AND OUTPUT DEFINITIONS
95
96  Inputs:
97     None
98
99  Outputs:
100     None
101
102  Returns:
103     None
104
105  Global Variables Used:
106     None
107
108  Local Variables Needed:
109     None
110
111 ------------------------------------------------------------------------------
112  FUNCTION DESCRIPTION
113
114  None
115
116 ------------------------------------------------------------------------------
117  REQUIREMENTS
118
119  None
120
121 ------------------------------------------------------------------------------
122  REFERENCES
123
124  [1] inv_sqrt.tab file,  UMTS GSM AMR speech codec, R99 - Version 3.2.0,
125  March 2, 2001
126
127 ------------------------------------------------------------------------------
128  PSEUDO-CODE
129
130
131 ------------------------------------------------------------------------------
132  CAUTION [optional]
133  [State any special notes, constraints or cautions for users of this function]
134
135 ------------------------------------------------------------------------------
136 */
137
138 /*----------------------------------------------------------------------------
139 ; FUNCTION CODE
140 ----------------------------------------------------------------------------*/
141