Home
last modified time | relevance | path

Searched refs:L_x (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dmath_op.c58 Word32 L_x /* (i) Q0 : input value (range: 0<=val<=7fffffff) */ in Isqrt() argument
63 exp = norm_l(L_x); in Isqrt()
64 L_x = (L_x << exp); /* L_x is normalized */ in Isqrt()
66 Isqrt_n(&L_x, &exp); in Isqrt()
67 L_y = (L_x << exp); /* denormalization */ in Isqrt()
164 Word32 L_x; in Pow2() local
166 L_x = vo_L_mult(fraction, 32); /* L_x = fraction<<6 */ in Pow2()
167 i = extract_h(L_x); /* Extract b10-b16 of fraction */ in Pow2()
168 L_x =L_x >> 1; in Pow2()
169 a = (Word16)(L_x); /* Extract b0-b9 of fraction */ in Pow2()
[all …]
Dlog2.c57 Word32 L_x, /* (i) : input value (normalized) */ in Log2_norm() argument
65 if (L_x <= (Word32) 0) in Log2_norm()
72 L_x = (L_x >> 9); in Log2_norm()
73 i = extract_h (L_x); /* Extract b25-b31 */ in Log2_norm()
74 L_x = (L_x >> 1); in Log2_norm()
75 a = (Word16)(L_x); /* Extract b10-b24 of fraction */ in Log2_norm()
99 Word32 L_x, /* (i) : input value */ in Log2() argument
106 exp = norm_l(L_x); in Log2()
107 Log2_norm ((L_x << exp), exp, exponent, fraction); in Log2()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwb_math_op.cpp278 int32 L_x /* (i) Q0 : input value (range: 0<=val<=7fffffff) */ in one_ov_sqrt() argument
284 exp = normalize_amr_wb(L_x); in one_ov_sqrt()
285 L_x <<= exp; /* L_x is normalized */ in one_ov_sqrt()
288 one_ov_sqrt_norm(&L_x, &exp); in one_ov_sqrt()
290 L_y = shl_int32(L_x, exp); /* denormalization */ in one_ov_sqrt()
390 int32 L_x; in power_of_2() local
392 L_x = fraction << 5; /* L_x = fraction<<6 */ in power_of_2()
394 a = (int16)(L_x); /* Extract b0-b9 of fraction */ in power_of_2()
397 L_x = ((int32)table_pow2[i]) << 15; /* table[i] << 16 */ in power_of_2()
399 L_x -= ((int32)tmp * a); /* L_x -= tmp*a*2 */ in power_of_2()
[all …]
Dpvamrwb_math_op.h77 int32 L_x /* (i) Q0 : input value (range: 0<=val<=7fffffff) */
96 int32 L_x, /* (i) : input value */
102 int32 L_x, /* (i) : input value (normalized) */
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dpow2.cpp183 Word32 L_x; in Pow2() local
185 L_x = L_mult(fraction, 32, pOverflow); /* L_x = fraction<<6 */ in Pow2()
189 i = ((Word16)(L_x >> 16)) & 31; /* ensure index i is bounded */ in Pow2()
190 a = (Word16)((L_x >> 1) & 0x7fff); in Pow2()
192 L_x = L_deposit_h(pow2_tbl[i]); /* pow2_tbl[i] << 16 */ in Pow2()
196 L_x = L_msu(L_x, tmp, a, pOverflow); /* L_x -= tmp*a*2 */ in Pow2()
199 L_x = L_shr_r(L_x, exp, pOverflow); in Pow2()
201 return (L_x); in Pow2()
Dinv_sqrt.cpp222 Word32 L_x, /* (i) : input value */ in Inv_sqrt() argument
233 if (L_x <= (Word32) 0) in Inv_sqrt()
238 exp = norm_l(L_x); in Inv_sqrt()
239 L_x <<= exp; /* L_x is normalize */ in Inv_sqrt()
245 L_x >>= 1; in Inv_sqrt()
250 L_x >>= 9; in Inv_sqrt()
251 i = (Word16)(L_x >> 16); /* Extract b25-b31 */ in Inv_sqrt()
252 a = (Word16)(L_x >> 1); /* Extract b10-b24 */ in Inv_sqrt()
Dsqrt_l.cpp211 Word32 L_x, /* i : input value, Q31 */ in sqrt_l_exp() argument
233 if (L_x <= (Word32) 0) in sqrt_l_exp()
239 e = norm_l(L_x) & 0xFFFE; /* get next lower EVEN norm. exp */ in sqrt_l_exp()
240 L_x = L_shl(L_x, e, pOverflow); /* L_x is normalized to [0.25..1) */ in sqrt_l_exp()
243 L_x >>= 10; in sqrt_l_exp()
244 i = (Word16)(L_x >> 15) & 63; /* Extract b25-b31, 16<= i <=63 */ in sqrt_l_exp()
247 a = (Word16)(L_x); /* Extract b10-b24 */ in sqrt_l_exp()
Dlog2_norm.cpp197 Word32 L_x, /* (i) : input value (normalized) */ in Log2_norm() argument
206 if (L_x <= (Word32) 0) in Log2_norm()
219 L_x >>= 10; in Log2_norm()
220 i = (Word16)(L_x >> 15); /* Extract b25-b31 */ in Log2_norm()
221 a = L_x & 0x7fff; /* Extract b10-b24 of fraction */ in Log2_norm()
Dlog2.cpp164 Word32 L_x, /* (i) : input value */ in Log2() argument
174 exp = norm_l(L_x); in Log2()
175 result = L_x << exp; in Log2()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dlog2.h48 Word32 L_x, /* (i) : input value */
54 Word32 L_x, /* (i) : input value (normalized) */
Dmath_op.h28 Word32 L_x /* (i) Q0 : input value (range: 0<=val<=7fffffff) */
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dinv_sqrt.h106 Word32 L_x, /* (i) : input value */
Dlog2.h107 Word32 L_x, /* (i) : input value */
Dsqrt_l.h105 Word32 L_x, /* i : input value, Q31 */
Dlog2_norm.h106 Word32 L_x, /* (i) : input value (normalized) */