/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | inv_sqrt.cpp | 158 Word16 exp, i, a, tmp; 169 exp = norm_l (L_x); 170 L_x = L_shl (L_x, exp); // L_x is normalize 172 exp = sub (30, exp); 174 if ((exp & 1) == 0) // If exponent even -> shift right 178 exp = shr (exp, 1); 179 exp = add (exp, 226 Word16 exp; local 239 L_x <<= exp; /* L_x is normalize */ local 266 L_y >>= exp; /* denormalization, exp always 0< exp < 31 */ local [all...] |
H A D | log2.cpp | 170 Word16 exp; local 174 exp = norm_l(L_x); 175 result = L_x << exp; 176 Log2_norm(result, exp, pExponent, pFraction);
|
H A D | log2_norm.cpp | 92 exp = number of shifts required to normalize L_x; it is of type Word16 139 Word16 exp, // (i) : norm_l (L_x) 154 *exponent = sub (30, exp); 198 Word16 exp, /* (i) : norm_l (L_x) */ 214 *exponent = 30 - exp; 196 Log2_norm( Word32 L_x, Word16 exp, Word16 *exponent, Word16 *fraction ) argument
|
H A D | pow2.cpp | 130 Word16 exp, i, a, tmp; 143 exp = sub (30, exponent); 144 L_x = L_shr_r (L_x, exp); 182 Word16 exp, i, a, tmp; local 198 exp = sub(30, exponent, pOverflow); 199 L_x = L_shr_r(L_x, exp, pOverflow);
|
H A D | az_lsp.cpp | 150 F(w) = 2 exp(-j5w) C(x) 389 Word16 x, y, sign, exp; 492 exp = norm_s (y); 493 y = shl (y, exp); 496 t0 = L_shr (t0, sub (20, exp)); 583 Word16 exp; local 687 exp = norm_s(y); 688 y <<= exp; local 691 y = ((Word32)x * y) >> (19 - exp);
|
H A D | gc_pred.cpp | 275 Word16 exp, frac; 303 Log2(ener_code, &exp, &frac); 304 ener_code = L_Comp (sub (exp, 30), frac); // Q16 for log() 330 * (store exp and frac for pow2()) * 349 Log2_norm (ener_code, exp_code, &exp, &frac); 352 L_tmp = Mpy_32_16(exp, frac, -24660); // Q0.Q15 * Q13 -> Q14 386 // <xn xn> = <xn xn>*2^11*2^exp * 2^exp_en 485 Word16 exp, frac; local 534 Log2(ener_code, &exp, &frac, pOverflow); 539 L_temp1 = (Word32)(exp [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | scale.c | 30 Word16 exp /* (i) : exponent: x = round(x << exp) */ 35 if(exp > 0) 39 L_tmp = L_shl2(x[i], 16 + exp); 45 exp = -exp; 49 L_tmp >>= exp; local
|
H A D | log2.c | 40 * PURPOSE: Computes log2(L_x, exp), where L_x is positive and 41 * normalized, and exp is the normalisation exponent 58 Word16 exp, /* (i) : norm_l (L_x) */ 71 *exponent = (30 - exp); 104 Word16 exp; local 106 exp = norm_l(L_x); 107 Log2_norm ((L_x << exp), exp, exponent, fraction); 56 Log2_norm( Word32 L_x, Word16 exp, Word16 *exponent, Word16 *fraction ) argument
|
H A D | voicefac.c | 37 Word16 tmp, exp, ener1, exp1, ener2, exp2; local 47 exp = norm_l(L_tmp); 48 tmp = extract_h(L_tmp << exp); 50 exp1 = exp1 - exp - 10; /* 10 -> gain_pit Q14 to Q9 */ 58 exp = norm_s(gain_code); 59 tmp = gain_code << exp; 62 exp2 = exp2 - (exp + exp);
|
H A D | math_op.c | 35 | Word32 frac, Word16 exp : L_32 = frac << exp-31 (normalised format) | 61 Word16 exp; local 63 exp = norm_l(L_x); 64 L_x = (L_x << exp); /* L_x is normalized */ 65 exp = (31 - exp); 66 Isqrt_n(&L_x, &exp); 67 L_y = (L_x << exp); /* denormalization */ 76 | if value is negative or zero, result is 1 (frac=7fffffff, exp 163 Word16 exp, i, a, tmp; local [all...] |
H A D | hp_wsp.c | 56 void scale_mem_Hp_wsp(Word16 mem[], Word16 exp) argument 64 L_tmp = L_shl(L_tmp, exp); 72 L_tmp = L_shl(L_tmp, exp);
|
H A D | az_isp.c | 68 Word16 x, y, sign, exp; local 152 exp = norm_s(y); 153 y = y << exp; 156 t0 = (t0 >> (19 - exp));
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | agc2_amr_wb.cpp | 124 int16 i, exp; local 145 exp = normalize_amr_wb(s) - 1; 146 gain_out = amr_wb_round(s << exp); 167 exp -= i; 175 s = shr_int32(s, exp); /* add exponent */
|
H A D | voice_factor.cpp | 127 int16 i, tmp, exp, ener1, exp1, ener2, exp2; local 133 exp = normalize_amr_wb(L_tmp); 135 tmp = (int16)((L_tmp << exp) >> 16); 137 exp1 -= (exp + 10); /* 10 -> gain_pit Q14 to Q9 */ 141 exp = norm_s(gain_code); 142 tmp = shl_int16(gain_code, exp); 145 exp2 -= (exp << 1);
|
H A D | isf_extrapolation.cpp | 123 int16 exp, exp2, hi, lo; local 153 exp = norm_s(tmp); 156 IsfDiff[i] = shl_int16(IsfDiff[i], exp); 158 mean = shl_int16(mean, exp); 227 exp = norm_s(tmp); 228 exp--; 229 tmp <<= exp; local 232 exp = exp2 - exp; 237 IsfDiff[i - (M - 1)] = shl_int16(tmp, exp); [all...] |
H A D | synthesis_amr_wb.cpp | 150 int16 i, fac, exp; local 255 tmp = extract_h(Dot_product12(HF, HF, L_SUBFR16k, &exp)); 260 exp += 1; 263 exp -= exp_ener; 264 one_ov_sqrt_norm(&L_tmp, &exp); 265 L_tmp = shl_int32(L_tmp, exp + 1); /* L_tmp x 2, L_tmp in Q31 */ 301 exp = normalize_amr_wb(L_tmp); 303 ener = (int16)((L_tmp << exp) >> 16); /* ener = r[0] */ 304 tmp = (int16)((L_tmp2 << exp) >> 16); /* tmp = r[1] */
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | ex_ctrl.cpp | 160 Word16 i, exp; local 191 exp = norm_s(excEnergy); 192 excEnergy = shl(excEnergy, exp, pOverflow); 195 t0 = L_shr(t0, sub(20, exp, pOverflow), pOverflow);
|
H A D | d_gain_c.cpp | 199 Word16 gcode0, exp, frac; local 213 * = 2^exp + 2^frac * 217 gc_pred(pred_state, mode, code, &exp, &frac, 229 gcode0 = (Word16)(Pow2(exp, frac, pOverflow)); /* predicted gain */ 237 L_tmp = L_shr(L_tmp, sub(9, exp, pOverflow), pOverflow);
|
H A D | dec_gain.cpp | 195 Word16 exp; local 242 Log2(temp1, &exp, &frac, pOverflow); 243 exp = sub(exp, 12, pOverflow); 246 temp2 = shl(exp, 10, pOverflow); 250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); 270 * = 2^exp + 2^frac * 272 * gcode0 (Q14) = 2^14*2^frac = gc0 * 2^(14-exp) * 275 gc_pred(pred_state, mode, code, &exp, &frac, NULL, NULL, pOverflow); 289 temp1 = sub(10, exp, pOverflo [all...] |
H A D | agc.cpp | 653 Word16 i, exp; 665 exp = sub (norm_l (s), 1); 666 gain_out = pv_round (L_shl (s, exp)); 679 exp = sub (exp, i); 687 s = L_shr (s, exp); // add exponent 749 Word16 exp; local 768 exp = norm_l(s) - 1; 770 L_temp = L_shl(s, exp, pOverflow); 789 exp 972 Word16 exp; local [all...] |
/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 104 public static float exp(float value) { method in class:FloatMath 105 return (float) Math.exp(value);
|
/frameworks/av/media/libeffects/testlibs/ |
H A D | EffectsMath.c | 51 int32_t exp = 31 - __builtin_clz(x); local 52 uint32_t segStart = x >> (exp - 6); 56 segStart <<= exp - 6; 58 return (exp << 15) + log + (((x - segStart) * (logEnd - log)) >> (exp - 6)); 89 uint32_t exp = gExpTab[j]; local 92 return ((exp << 9) + (expEnd - exp) * x) >> (31 - i);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | calc_en.cpp | 158 Word16 i, exp, tmp; 175 exp = norm_l(s); 176 frac_en[0] = extract_h(L_shl(s, exp)); 177 exp_en[0] = sub(15, exp); 185 exp = norm_l(s); 186 frac_en[1] = extract_h(L_shl(s, exp)); 187 exp_en[1] = sub(15, exp); 194 exp = norm_l(s); 195 frac_en[2] = extract_h(L_shl(s, exp)); 196 exp_en[2] = sub(16-14, exp); 284 Word16 exp; /* nunmber of '0's or '1's before MSB != 0 */ local 612 Word16 exp; /* number of '0's or '1's before MSB != 0 */ local 802 Word16 exp; local [all...] |
H A D | qgain475.cpp | 410 Word16 g_code, exp, frac, tmp; 439 Log2 (L_deposit_l (g_code), &exp, &frac); // Log2(x Q12) = log2(x) + 12 440 exp = sub(exp, 12); 443 qua_ener_MR122 = add (tmp, shl (exp, 10)); 445 L_tmp = Mpy_32_16(exp, frac, 24660); // 24660 Q12 ~= 6.0206 = 20*log10(2) 485 Word16 exp; local 519 Log2((Word32) g_code, &exp, &frac, pOverflow); 520 exp -= 12; 523 qua_ener_MR122 = exp << 1 703 Word16 exp; local 1185 Word16 exp; local 1258 sf1_frac_target_en >>= exp; local [all...] |
H A D | qgain795.cpp | 499 Word16 exp; local 574 exp = sub(exp_gcode0, 10, pOverflow); 575 exp_coeff[2] = add(exp_en[2], exp, pOverflow); 580 exp = sub(shl(exp_gcode0, 1, pOverflow), 7, pOverflow); 581 exp_coeff[3] = add(exp_en[3], exp, pOverflow); 590 -> result = val >> (exp/2) 593 L_t0 = sqrt_l_exp(L_tmp, &exp, pOverflow); /* normalization included in sqrt_l_exp */ 594 exp = add(exp, 47, pOverflow); 595 exp_coeff[0] = sub(exp_en[0], exp, pOverflo 842 Word16 exp; local [all...] |