Home
last modified time | relevance | path

Searched refs:L_sum (Results 1 – 20 of 20) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrwb/src/
Doversamp_12k8_to_16k.cpp281 int32 L_sum; in AmrWbInterpol() local
292 L_sum = fxp_mac_16by16(tmp1, *(pt_fir++), 0x00002000L); in AmrWbInterpol()
293 L_sum = fxp_mac_16by16(tmp2, *(pt_fir++), L_sum); in AmrWbInterpol()
294 L_sum = fxp_mac_16by16(tmp3, *(pt_fir++), L_sum); in AmrWbInterpol()
295 L_sum = fxp_mac_16by16(tmp4, *(pt_fir++), L_sum); in AmrWbInterpol()
300 L_sum = fxp_mac_16by16(tmp1, *(pt_fir++), L_sum); in AmrWbInterpol()
301 L_sum = fxp_mac_16by16(tmp2, *(pt_fir++), L_sum); in AmrWbInterpol()
302 L_sum = fxp_mac_16by16(tmp3, *(pt_fir++), L_sum); in AmrWbInterpol()
303 L_sum = fxp_mac_16by16(tmp4, *(pt_fir++), L_sum); in AmrWbInterpol()
308 L_sum = fxp_mac_16by16(tmp1, *(pt_fir++), L_sum); in AmrWbInterpol()
[all …]
Dpvamrwb_math_op.cpp432 int32 L_sum; in Dot_product12() local
436 L_sum = 1L; in Dot_product12()
441 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
442 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
443 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
444 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
445 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
446 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
447 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
448 L_sum = mac_16by16_to_int32(L_sum, *(pt_x++), *(pt_y++)); in Dot_product12()
[all …]
Dpvamrwbdecoder_basic_op_cequivalent.h90 int32 L_sum; in add_int16() local
92 L_sum = (int32) var1 + var2; in add_int16()
93 if ((L_sum >> 15) != (L_sum >> 31)) in add_int16()
95 L_sum = (L_sum >> 31) ^ MAX_16; in add_int16()
97 return ((int16)(L_sum)); in add_int16()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dpred_lt4.c59 Word32 L_sum; in Pred_lt4() local
78 L_sum = vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
79 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
80 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
81 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
82 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
83 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
84 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
85 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
86 L_sum += vo_mult32((*ptr1++), (*ptr++)); in Pred_lt4()
[all …]
Ddecim54.c98 Word32 L_sum; in Down_samp() local
108 L_sum = vo_mult32((*x++),(*y++)); in Down_samp()
109 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
110 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
111 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
112 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
113 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
114 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
115 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
116 L_sum += vo_mult32((*x++),(*y++)); in Down_samp()
[all …]
Dautocorr.c42 Word32 L_sum, L_sum1, L_tmp, F_LEN; in Autocorr() local
61 L_sum = vo_L_deposit_h(16); /* sqrt(256), avoid overflow after rounding */ in Autocorr()
66 L_sum += L_tmp; in Autocorr()
70 norm = norm_l(L_sum); in Autocorr()
89 L_sum = 1; in Autocorr()
92 L_sum += vo_L_mult(y[i], y[i]); in Autocorr()
93 L_sum += vo_L_mult(y[i+1], y[i+1]); in Autocorr()
94 L_sum += vo_L_mult(y[i+2], y[i+2]); in Autocorr()
95 L_sum += vo_L_mult(y[i+3], y[i+3]); in Autocorr()
98 norm = norm_l(L_sum); in Autocorr()
[all …]
Dmath_op.c204 Word32 i, L_sum; in Dot_product12() local
205 L_sum = 0; in Dot_product12()
212 L_sum = L_add(L_sum, tmp); in Dot_product12()
214 L_sum = L_shl2(L_sum, 1); in Dot_product12()
215 L_sum = L_add(L_sum, 1); in Dot_product12()
217 sft = norm_l(L_sum); in Dot_product12()
218 L_sum = L_sum << sft; in Dot_product12()
220 return (L_sum); in Dot_product12()
Dpitch_f4.c300 Word32 k, L_sum; in Interpol_4() local
312 L_sum = vo_mult32(x[0], (*ptr++)); in Interpol_4()
313 L_sum = L_add(L_sum, vo_mult32(x[1], (*ptr++))); in Interpol_4()
314 L_sum = L_add(L_sum, vo_mult32(x[2], (*ptr++))); in Interpol_4()
315 L_sum = L_add(L_sum, vo_mult32(x[3], (*ptr++))); in Interpol_4()
316 L_sum = L_add(L_sum, vo_mult32(x[4], (*ptr++))); in Interpol_4()
317 L_sum = L_add(L_sum, vo_mult32(x[5], (*ptr++))); in Interpol_4()
318 L_sum = L_add(L_sum, vo_mult32(x[6], (*ptr++))); in Interpol_4()
319 L_sum = L_add(L_sum, vo_mult32(x[7], (*ptr++))); in Interpol_4()
321 sum = extract_h(L_add(L_shl2(L_sum, 2), 0x8000)); in Interpol_4()
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dbasic_op_c_equivalent.h121 Word32 L_sum; in L_add() local
123 L_sum = L_var1 + L_var2; in L_add()
127 if ((L_sum ^ L_var1) < 0) in L_add()
129 L_sum = (L_var1 < 0) ? MIN_32 : MAX_32; in L_add()
134 return (L_sum); in L_add()
203 Word32 L_sum; in L_mac() local
207 L_sum = (result << 1) + L_var3; in L_mac()
212 if ((L_sum ^ L_var3) < 0) in L_mac()
214 L_sum = (L_var3 < 0) ? MIN_32 : MAX_32; in L_mac()
222 L_sum = MAX_32; in L_mac()
[all …]
Dmpy_32.h118 Word32 L_sum; in Mpy_32() local
131 __asm {QDADD L_sum, L_product, product32} in Mpy_32()
132 L_product = L_sum; in Mpy_32()
135 __asm {QDADD L_sum, L_product, product32} in Mpy_32()
136 return (L_sum); in Mpy_32()
148 register Word32 L_sum;
168 : "=r"(L_sum)
183 : "r"(L_sum), "r"(ra)
197 : "=r"(L_sum)
201 return (L_sum);
[all …]
Dl_mac.h111 Word32 L_sum; in L_mac() local
116 __asm {QDADD L_sum, L_var3, result} in L_mac()
117 return (L_sum); in L_mac()
149 Word32 L_sum;
153 L_sum = (result << 1) + L_var3;
158 if ((L_sum ^ L_var3) < 0)
160 L_sum = (L_var3 < 0) ? MIN_32 : MAX_32;
168 L_sum = MAX_32;
170 return (L_sum);
Dmpy_32_16.h100 Word32 L_sum; in Mpy_32_16() local
109 __asm {QDADD L_sum, L_product, result} in Mpy_32_16()
110 return (L_sum); in Mpy_32_16()
166 Word32 L_sum;
182 L_sum = L_product + (result << 1);
186 if ((L_sum ^ L_product) < 0)
188 L_sum = (L_product < 0) ? MIN_32 : MAX_32;
192 return (L_sum);
Dbasic_op_arm_v5.h193 Word32 L_sum; in L_mac() local
198 __asm {QDADD L_sum, L_var3, result} in L_mac()
199 return (L_sum); in L_mac()
305 Word32 L_sum; in Mpy_32() local
319 QDADD L_sum, L_product, product32 in Mpy_32()
321 L_product = L_sum; in Mpy_32()
329 QDADD L_sum, L_product, product32 in Mpy_32()
331 return (L_sum); in Mpy_32()
360 Word32 L_sum; in Mpy_32_16() local
369 __asm {QDADD L_sum, L_product, result} in Mpy_32_16()
[all …]
Dl_add.h146 Word32 L_sum;
148 L_sum = L_var1 + L_var2;
152 if ((L_sum ^ L_var1) < 0)
154 L_sum = (L_var1 < 0) ? MIN_32 : MAX_32;
159 return (L_sum);
Dbasic_op_arm_gcc_v5.h336 register Word32 L_sum; in Mpy_32() local
356 : "=r"(L_sum) in Mpy_32()
371 : "r"(L_sum), "r"(ra) in Mpy_32()
385 : "=r"(L_sum) in Mpy_32()
389 return (L_sum); in Mpy_32()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dc_g_aver.cpp484 Word32 L_sum; in Cb_gain_average() local
611 L_sum = L_mult(6554, st->cbGainHistory[2], pOverflow); in Cb_gain_average()
616 L_sum = L_mac(L_sum, 6554, st->cbGainHistory[i], pOverflow); in Cb_gain_average()
618 cbGainMean = pv_round(L_sum, pOverflow); /* Q1 */ in Cb_gain_average()
627 L_sum = L_mult(4681, st->cbGainHistory[0], pOverflow); in Cb_gain_average()
630 L_sum = in Cb_gain_average()
631 L_mac(L_sum, 4681, st->cbGainHistory[i], pOverflow); in Cb_gain_average()
633 cbGainMean = pv_round(L_sum, pOverflow); /* Q1 */ in Cb_gain_average()
638 L_sum = L_mult(bgMix, cbGainMix, pOverflow); in Cb_gain_average()
639 L_sum = L_mac(L_sum, 8192, cbGainMean, pOverflow); in Cb_gain_average()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
DDot_p_opt.s35 MOV r4, #0 @ L_sum = 0
63 ADD r12, r12, #1 @ L_sum = (L_sum << 1) + 1
69 SUB r10, r10, #1 @ sft = norm_l(L_sum)
70 MOV r0, r12, LSL r10 @ L_sum = L_sum << sft
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
DDot_p_neon.s112 ADD r12, r12, #1 @ L_sum = (L_sum << 1) + 1
117 SUB r10, r10, #1 @ sft = norm_l(L_sum)
118 MOV r0, r12, LSL r10 @ L_sum = L_sum << sft
Dpred_lt4_1_neon.s87 QADD r1, r12, r12 @ L_sum = (L_sum << 2)
92 STRH r1, [r0], #2 @ exc[j] = (L_sum + 0x8000) >> 16
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dbasic_op.h129 Word32 L_sum; in add() local
130 L_sum = (Word32) var1 + var2; in add()
131 var_out = saturate (L_sum); in add()