1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
22 ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23 Available from http://www.3gpp.org
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 ****************************************************************************************/
31 Filename: sqrt_l_tbl.cpp
33 ------------------------------------------------------------------------------
36 This file contains the declaration for sqrt_l_table[] used by the sqrt_l_exp
39 sqrt_l_tbl[i] = sqrt((i+16)*2^-6) * 2^15, i.e. sqrt(x) scaled Q15
41 ------------------------------------------------------------------------------
44 /*----------------------------------------------------------------------------
46 ----------------------------------------------------------------------------*/
49 /*--------------------------------------------------------------------------*/
55 /*----------------------------------------------------------------------------
57 ; [Define module specific macros here]
58 ----------------------------------------------------------------------------*/
60 /*----------------------------------------------------------------------------
62 ; [Include all pre-processor statements here. Include conditional
63 ; compile variables also.]
64 ----------------------------------------------------------------------------*/
66 /*----------------------------------------------------------------------------
67 ; LOCAL FUNCTION DEFINITIONS
68 ; [List function prototypes here]
69 ----------------------------------------------------------------------------*/
71 /*----------------------------------------------------------------------------
72 ; LOCAL VARIABLE DEFINITIONS
73 ; [Variable declaration - defined here and used outside this module]
74 ----------------------------------------------------------------------------*/
75 const Word16 sqrt_l_tbl[50] =
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
85 /*--------------------------------------------------------------------------*/
91 ------------------------------------------------------------------------------
93 ------------------------------------------------------------------------------
94 INPUT AND OUTPUT DEFINITIONS
105 Global Variables Used:
108 Local Variables Needed:
111 ------------------------------------------------------------------------------
116 ------------------------------------------------------------------------------
121 ------------------------------------------------------------------------------
124 [1] inv_sqrt.tab file, UMTS GSM AMR speech codec, R99 - Version 3.2.0,
127 ------------------------------------------------------------------------------
131 ------------------------------------------------------------------------------
133 [State any special notes, constraints or cautions for users of this function]
135 ------------------------------------------------------------------------------
138 /*----------------------------------------------------------------------------
140 ----------------------------------------------------------------------------*/