/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | calc_en.cpp | 284 Word16 exp; /* nunmber of '0's or '1's before MSB != 0 */ in calc_unfilt_energies() local 339 exp = norm_l(s1); in calc_unfilt_energies() 340 frac_en[0] = (Word16)(L_shl(s1, exp, pOverflow) >> 16); in calc_unfilt_energies() 341 exp_en[0] = (15 - exp); in calc_unfilt_energies() 350 exp = norm_l(s2); in calc_unfilt_energies() 351 frac_en[1] = (Word16)(L_shl(s2, exp, pOverflow) >> 16); in calc_unfilt_energies() 352 exp_en[1] = sub(15, exp, pOverflow); in calc_unfilt_energies() 355 exp = norm_l(s3); in calc_unfilt_energies() 356 frac_en[2] = (Word16)(L_shl(s3, exp, pOverflow) >> 16); in calc_unfilt_energies() 357 exp_en[2] = 2 - exp; in calc_unfilt_energies() [all …]
|
D | qgain475.cpp | 485 Word16 exp; in MR475_quant_store_results() local 519 Log2((Word32) g_code, &exp, &frac, pOverflow); in MR475_quant_store_results() 520 exp -= 12; in MR475_quant_store_results() 523 qua_ener_MR122 = exp << 10; in MR475_quant_store_results() 527 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_quant_store_results() 703 Word16 exp; in MR475_update_unq_pred() local 754 Log2((Word32) frac, &exp, &frac, pOverflow); in MR475_update_unq_pred() 755 exp += tmp; in MR475_update_unq_pred() 759 tmp = exp << 10; in MR475_update_unq_pred() 770 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in MR475_update_unq_pred() [all …]
|
D | qgain795.cpp | 499 Word16 exp; in MR795_gain_code_quant_mod() local 574 exp = sub(exp_gcode0, 10, pOverflow); in MR795_gain_code_quant_mod() 575 exp_coeff[2] = add(exp_en[2], exp, pOverflow); in MR795_gain_code_quant_mod() 580 exp = sub(shl(exp_gcode0, 1, pOverflow), 7, pOverflow); in MR795_gain_code_quant_mod() 581 exp_coeff[3] = add(exp_en[3], exp, pOverflow); in MR795_gain_code_quant_mod() 593 L_t0 = sqrt_l_exp(L_tmp, &exp, pOverflow); /* normalization included in sqrt_l_exp */ in MR795_gain_code_quant_mod() 594 exp = add(exp, 47, pOverflow); in MR795_gain_code_quant_mod() 595 exp_coeff[0] = sub(exp_en[0], exp, pOverflow); in MR795_gain_code_quant_mod() 627 exp = sub(e_max, 31, pOverflow); /* new exponent */ in MR795_gain_code_quant_mod() 628 tmp = sub(exp, exp_coeff[0], pOverflow); in MR795_gain_code_quant_mod() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | math_op.c | 61 Word16 exp; in Isqrt() local 63 exp = norm_l(L_x); in Isqrt() 64 L_x = (L_x << exp); /* L_x is normalized */ in Isqrt() 65 exp = (31 - exp); in Isqrt() 66 Isqrt_n(&L_x, &exp); in Isqrt() 67 L_y = (L_x << exp); /* denormalization */ in Isqrt() 102 Word16 * exp /* (i/o) : exponent (value = frac x 2^exponent) */ in Isqrt_n() argument 109 *exp = 0; in Isqrt_n() 114 if((*exp & 1) == 1) /*If exponant odd -> shift right */ in Isqrt_n() 117 *exp = negate((*exp - 1) >> 1); in Isqrt_n() [all …]
|
D | q_gain2.c | 79 Word16 exp, frac, gcode0, exp_gcode0, e_max, exp_code, qua_ener; in Q_gain2() local 147 coeff[2] = extract_h(Dot_product12_asm(y2, y2, L_subfr, &exp)); in Q_gain2() 149 coeff[2] = extract_h(Dot_product12(y2, y2, L_subfr, &exp)); in Q_gain2() 151 exp_coeff[2] = (exp - 18) + (Q_xn << 1); /* -18 (y2 Q9) */ in Q_gain2() 155 coeff[3] = extract_h(L_negate(Dot_product12_asm(xn, y2, L_subfr, &exp))); in Q_gain2() 157 coeff[3] = extract_h(L_negate(Dot_product12(xn, y2, L_subfr, &exp))); in Q_gain2() 160 exp_coeff[3] = (exp - 8) + Q_xn; /* -9 (y2 Q9), +1 (2 xn y2) */ in Q_gain2() 164 coeff[4] = extract_h(Dot_product12_asm(y1, y2, L_subfr, &exp)); in Q_gain2() 166 coeff[4] = extract_h(Dot_product12(y1, y2, L_subfr, &exp)); in Q_gain2() 168 exp_coeff[4] = (exp - 8) + Q_xn; /* -9 (y2 Q9), +1 (2 y1 y2) */ in Q_gain2() [all …]
|
D | scale.c | 30 Word16 exp /* (i) : exponent: x = round(x << exp) */ in Scale_sig() argument 35 if(exp > 0) in Scale_sig() 39 L_tmp = L_shl2(x[i], 16 + exp); in Scale_sig() 45 exp = -exp; in Scale_sig() 49 L_tmp >>= exp; in Scale_sig()
|
D | voicefac.c | 37 Word16 tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local 47 exp = norm_l(L_tmp); in voice_factor() 48 tmp = extract_h(L_tmp << exp); in voice_factor() 50 exp1 = exp1 - exp - 10; /* 10 -> gain_pit Q14 to Q9 */ in voice_factor() 58 exp = norm_s(gain_code); in voice_factor() 59 tmp = gain_code << exp; in voice_factor() 62 exp2 = exp2 - (exp + exp); in voice_factor()
|
D | log2.c | 58 Word16 exp, /* (i) : norm_l (L_x) */ in Log2_norm() argument 71 *exponent = (30 - exp); in Log2_norm() 104 Word16 exp; in Log2() local 106 exp = norm_l(L_x); in Log2() 107 Log2_norm ((L_x << exp), exp, exponent, fraction); in Log2()
|
D | pitch_f4.c | 173 Word32 corr, exp_corr, norm, exp, scale; in Norm_Corr() local 198 exp = norm_l(L_tmp); in Norm_Corr() 199 exp = L_sub(32, exp); in Norm_Corr() 201 scale = -(exp >> 1); /* (1<<scale) < 1/sqrt(energy rounded) */ in Norm_Corr() 225 exp = norm_l(L_tmp); in Norm_Corr() 226 L_tmp = L_shl(L_tmp, exp); in Norm_Corr() 227 exp_corr = L_sub(30, exp); in Norm_Corr() 230 exp = norm_l(L_tmp1); in Norm_Corr() 231 L_tmp = L_shl(L_tmp1, exp); in Norm_Corr() 232 exp_norm = L_sub(30, exp); in Norm_Corr()
|
D | c2t64fx.c | 58 Word16 alp, val, exp, k_cn, k_dn; in ACELP_2t64_fx() local 76 s = Dot_product12_asm(cn, cn, L_SUBFR, &exp); in ACELP_2t64_fx() 78 s = Dot_product12(cn, cn, L_SUBFR, &exp); in ACELP_2t64_fx() 81 Isqrt_n(&s, &exp); in ACELP_2t64_fx() 82 s = L_shl(s, add1(exp, 5)); in ACELP_2t64_fx() 90 s = Dot_product12_asm(dn, dn, L_SUBFR, &exp); in ACELP_2t64_fx() 92 s = Dot_product12(dn, dn, L_SUBFR, &exp); in ACELP_2t64_fx() 95 Isqrt_n(&s, &exp); in ACELP_2t64_fx() 96 k_dn = voround(L_shl(s, (exp + 8))); /* k_dn = 256..4096 */ in ACELP_2t64_fx()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | pvamrwb_math_op.cpp | 281 int16 exp; in one_ov_sqrt() local 284 exp = normalize_amr_wb(L_x); in one_ov_sqrt() 285 L_x <<= exp; /* L_x is normalized */ in one_ov_sqrt() 286 exp = 31 - exp; 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() 325 int16 * exp /* (i/o) : exponent (value = frac x 2^exponent) */ in one_ov_sqrt_norm() argument 333 *exp = 0; in one_ov_sqrt_norm() 338 if ((*exp & 1) == 1) /* If exponant odd -> shift right */ in one_ov_sqrt_norm() 341 *exp = negate_int16((*exp - 1) >> 1); in one_ov_sqrt_norm() [all …]
|
D | scale_signal.cpp | 118 int16 exp /* (i) : exponent: x = round(x << exp) */ in scale_signal() argument 129 if (exp > 0) in scale_signal() 133 L_tmp = shl_int32(((int32)x[i] << 16), exp); /* saturation can occur here */ in scale_signal() 137 else if (exp < 0) in scale_signal() 139 exp = -exp; in scale_signal() 140 exp &= 0xf; in scale_signal() 141 tmp = (int16)(0x00008000 >> (16 - exp)); in scale_signal() 146 *(pt_x) = add_int16(*(pt_x), tmp) >> exp; in scale_signal() 148 *(pt_x) = add_int16(*(pt_x), tmp) >> exp; in scale_signal()
|
D | voice_factor.cpp | 127 int16 i, tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local 133 exp = normalize_amr_wb(L_tmp); in voice_factor() 135 tmp = (int16)((L_tmp << exp) >> 16); in voice_factor() 137 exp1 -= (exp + 10); /* 10 -> gain_pit Q14 to Q9 */ in voice_factor() 141 exp = norm_s(gain_code); in voice_factor() 142 tmp = shl_int16(gain_code, exp); in voice_factor() 145 exp2 -= (exp << 1); in voice_factor()
|
D | dec_gain2_amr_wb.cpp | 187 int16 i, tmp, exp, frac, gcode0, exp_gcode0, qua_ener, gcode_inov; in dec_gain2_amr_wb() local 206 L_tmp = Dot_product12(code, code, L_subfr, &exp); in dec_gain2_amr_wb() 207 exp -= 24; /* exp: -18 (code in Q9), -6 (/L_subfr) */ in dec_gain2_amr_wb() 209 one_ov_sqrt_norm(&L_tmp, &exp); in dec_gain2_amr_wb() 211 gcode_inov = extract_h(shl_int32(L_tmp, exp - 3)); /* g_code_inov in Q12 */ in dec_gain2_amr_wb() 377 int32_to_dpf(*gain_cod, &exp, &frac); in dec_gain2_amr_wb() 378 L_tmp = mul_32by16(exp, frac, gcode_inov); in dec_gain2_amr_wb() 393 amrwb_log_2(L_tmp, &exp, &frac); in dec_gain2_amr_wb() 394 exp -= 11; in dec_gain2_amr_wb() 395 L_tmp = mul_32by16(exp, frac, 24660); /* x 6.0206 in Q12 */ in dec_gain2_amr_wb()
|
D | isf_extrapolation.cpp | 123 int16 exp, exp2, hi, lo; in isf_extrapolation() local 153 exp = norm_s(tmp); in isf_extrapolation() 156 IsfDiff[i] = shl_int16(IsfDiff[i], exp); in isf_extrapolation() 158 mean = shl_int16(mean, exp); in isf_extrapolation() 227 exp = norm_s(tmp); in isf_extrapolation() 228 exp--; in isf_extrapolation() 229 tmp <<= exp; in isf_extrapolation() 232 exp = exp2 - exp; in isf_extrapolation() 237 IsfDiff[i - (M - 1)] = shl_int16(tmp, exp); in isf_extrapolation()
|
D | agc2_amr_wb.cpp | 124 int16 i, exp; in agc2_amr_wb() local 145 exp = normalize_amr_wb(s) - 1; in agc2_amr_wb() 146 gain_out = amr_wb_round(s << exp); in agc2_amr_wb() 167 exp -= i; in agc2_amr_wb() 175 s = shr_int32(s, exp); /* add exponent */ in agc2_amr_wb()
|
D | synthesis_amr_wb.cpp | 150 int16 i, fac, exp; in synthesis_amr_wb() local 255 tmp = extract_h(Dot_product12(HF, HF, L_SUBFR16k, &exp)); in synthesis_amr_wb() 260 exp += 1; in synthesis_amr_wb() 263 exp -= exp_ener; in synthesis_amr_wb() 264 one_ov_sqrt_norm(&L_tmp, &exp); in synthesis_amr_wb() 265 L_tmp = shl_int32(L_tmp, exp + 1); /* L_tmp x 2, L_tmp in Q31 */ in synthesis_amr_wb() 301 exp = normalize_amr_wb(L_tmp); in synthesis_amr_wb() 303 ener = (int16)((L_tmp << exp) >> 16); /* ener = r[0] */ in synthesis_amr_wb() 304 tmp = (int16)((L_tmp2 << exp) >> 16); /* tmp = r[1] */ in synthesis_amr_wb()
|
/frameworks/compile/mclinker/lib/Script/ |
D | ScriptParser.yy | 194 %type <integer> exp 354 /* create exp for vma */ 385 opt_vma_and_type : exp opt_type 596 | symbol ADD_ASSIGN exp ';' 597 | symbol SUB_ASSIGN exp ';' 598 | symbol MUL_ASSIGN exp ';' 599 | symbol DIV_ASSIGN exp ';' 600 | symbol AND_ASSIGN exp ';' 601 | symbol OR_ASSIGN exp ';' 602 | symbol LS_ASSIGN exp ';' [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | inv_sqrt.cpp | 226 Word16 exp; in Inv_sqrt() local 238 exp = norm_l(L_x); in Inv_sqrt() 239 L_x <<= exp; /* L_x is normalize */ in Inv_sqrt() 241 exp = 30 - exp; in Inv_sqrt() 243 if ((exp & 1) == 0) /* If exponent even -> shift right */ in Inv_sqrt() 247 exp >>= 1; in Inv_sqrt() 248 exp += 1; in Inv_sqrt() 266 L_y >>= exp; /* denormalization, exp always 0< exp < 31 */ in Inv_sqrt()
|
D | log2.cpp | 170 Word16 exp; in Log2() local 174 exp = norm_l(L_x); in Log2() 175 result = L_x << exp; in Log2() 176 Log2_norm(result, exp, pExponent, pFraction); in Log2()
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectsMath.c | 51 int32_t exp = 31 - __builtin_clz(x); in Effects_log2() local 52 uint32_t segStart = x >> (exp - 6); in Effects_log2() 56 segStart <<= exp - 6; in Effects_log2() 58 return (exp << 15) + log + (((x - segStart) * (logEnd - log)) >> (exp - 6)); in Effects_log2() 89 uint32_t exp = gExpTab[j]; in Effects_exp2() local 92 return ((exp << 9) + (expEnd - exp) * x) >> (31 - i); in Effects_exp2()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | dec_gain.cpp | 195 Word16 exp; in Dec_gain() local 242 Log2(temp1, &exp, &frac, pOverflow); in Dec_gain() 243 exp = sub(exp, 12, pOverflow); in Dec_gain() 246 temp2 = shl(exp, 10, pOverflow); in Dec_gain() 250 L_tmp = Mpy_32_16(exp, frac, 24660, pOverflow); in Dec_gain() 275 gc_pred(pred_state, mode, code, &exp, &frac, NULL, NULL, pOverflow); in Dec_gain() 289 temp1 = sub(10, exp, pOverflow); in Dec_gain()
|
D | agc.cpp | 749 Word16 exp; in agc() local 768 exp = norm_l(s) - 1; in agc() 770 L_temp = L_shl(s, exp, pOverflow); in agc() 789 exp -= i; in agc() 801 s = L_shr(s, exp, pOverflow); /* add exponent */ in agc() 972 Word16 exp; in agc2() local 987 exp = norm_l(s) - 1; in agc2() 988 L_temp = L_shl(s, exp, pOverflow); in agc2() 1003 exp -= i; in agc2() 1027 s = L_shr(s, exp, pOverflow); /* add exponent */ in agc2()
|
D | ex_ctrl.cpp | 160 Word16 i, exp; in Ex_ctrl() local 191 exp = norm_s(excEnergy); in Ex_ctrl() 192 excEnergy = shl(excEnergy, exp, pOverflow); in Ex_ctrl() 195 t0 = L_shr(t0, sub(20, exp, pOverflow), pOverflow); in Ex_ctrl()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
D | scale_sig_opt.s | 20 @ Word16 exp /* (i) : exponent: x = round(x << exp) */ 25 @r2 --- exp 34 CMP r2, #0 @Compare exp and 0 35 RSB r7, r2, #0 @exp = -exp 36 ADD r10, r2, #16 @16 + exp 59 MOV r5, r6, ASR r7 @L_tmp >>= exp
|