Home
last modified time | relevance | path

Searched refs:var2 (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/av/media/module/codecs/amrwb/enc/inc/
Dbasic_op.h51 #define vo_shr_r(var1, var2) (((var1)+((Word16)(1L<<((var2)-1))))>>(var2)) argument
60 #define vo_L_shr_r(L_var1, var2) (((L_var1)+((Word32)(1L<<((var2)-1))))>>(var2)) argument
68 static_vo Word16 add (Word16 var1, Word16 var2); /* Short add,1 */
69 static_vo Word16 sub (Word16 var1, Word16 var2); /* Short sub,1 */
70 static_vo Word16 shl (Word16 var1, Word16 var2); /* Short shift left…
71 static_vo Word16 shr (Word16 var1, Word16 var2); /* Short shift righ…
72 static_vo Word16 mult (Word16 var1, Word16 var2); /* Short mult, …
73 static_vo Word32 L_mult (Word16 var1, Word16 var2); /* Long mult, …
75 static_vo Word32 L_mac (Word32 L_var3, Word16 var1, Word16 var2); /* Mac, 1 */
76 static_vo Word32 L_msu (Word32 L_var3, Word16 var1, Word16 var2); /* Msu, 1 */
[all …]
/frameworks/av/media/module/codecs/amrwb/dec/src/
Dpvamrwbdecoder_basic_op.h114 __inline int16 shl_int16(int16 var1, int16 var2) in shl_int16() argument
118 if (var2 < 0) in shl_int16()
120 var2 = (-var2) & (0xf); in shl_int16()
121 var_out = var1 >> var2; in shl_int16()
125 var2 &= 0xf; in shl_int16()
126 var_out = var1 << var2; in shl_int16()
127 if (var_out >> var2 != var1) in shl_int16()
158 __inline int32 shl_int32(int32 L_var1, int16 var2) in shl_int32() argument
162 if (var2 > 0) in shl_int32()
164 L_var_out = L_var1 << var2; in shl_int32()
[all …]
Dpvamrwbdecoder_basic_op_cequivalent.h88 __inline int16 add_int16(int16 var1, int16 var2) in add_int16() argument
92 L_sum = (int32) var1 + var2; in add_int16()
127 __inline int16 sub_int16(int16 var1, int16 var2) in sub_int16() argument
131 L_diff = (int32) var1 - var2; in sub_int16()
165 __inline int16 mult_int16(int16 var1, int16 var2) in mult_int16() argument
169 L_product = ((int32) var1 * (int32) var2) >> 15; in mult_int16()
294 __inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32() argument
298 L_mul = ((int32) var1 * (int32) var2); in mul_16by16_to_int32()
342 __inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32() argument
344 return add_int32(L_var3, mul_16by16_to_int32(var1, var2)); in mac_16by16_to_int32()
[all …]
Dpvamrwbdecoder_basic_op_armv5.h62 __inline int16 add_int16(int16 var1, int16 var2) in add_int16() argument
70 mov L_var_aux, var2, lsl #16 in add_int16()
79 __inline int16 sub_int16(int16 var1, int16 var2) in sub_int16() argument
87 mov L_var_aux, var2, lsl #16 in sub_int16()
108 __inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32() argument
115 smulbb L_var_out, var1, var2 in mac_16by16_to_int32()
132 __inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32() argument
139 smulbb L_var_out, var1, var2 in msu_16by16_from_int32()
145 __inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32() argument
151 smulbb L_var_out, var1, var2 in mul_16by16_to_int32()
[all …]
Dpvamrwbdecoder_basic_op_gcc_armv5.h59 static inline int16 sub_int16(int16 var1, int16 var2) in sub_int16() argument
64 register int32 rb = (int32)var2; in sub_int16()
80 static inline int16 add_int16(int16 var1, int16 var2) in add_int16() argument
85 register int32 rb = (int32)var2; in add_int16()
155 static inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32() argument
159 register int32 rb = (int32)var2; in msu_16by16_from_int32()
174 static inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32() argument
178 register int32 rb = (int32)var2; in mac_16by16_to_int32()
193 static inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32() argument
197 register int32 rb = (int32)var2; in mul_16by16_to_int32()
[all …]
Dpvamrwb_math_op.cpp94 int16 mult_int16_r(int16 var1, int16 var2) in mult_int16_r() argument
98 L_product_arr = (int32) var1 * (int32) var2; /* product */ in mult_int16_r()
152 int16 shr_rnd(int16 var1, int16 var2) in shr_rnd() argument
156 var_out = (int16)(var1 >> (var2 & 0xf)); in shr_rnd()
157 if (var2) in shr_rnd()
159 if ((var1 & ((int16) 1 << (var2 - 1))) != 0) in shr_rnd()
204 int16 div_16by16(int16 var1, int16 var2) in div_16by16() argument
214 if ((var1 > var2) || (var1 < 0)) in div_16by16()
220 if (var1 != var2) in div_16by16()
224 L_denom = (int32) var2; in div_16by16()
Dpvamrwb_math_op.h109 int16 mult_int16_r(int16 var1, int16 var2); /* Mult with round, 2 */
110 int16 shr_rnd(int16 var1, int16 var2); /* Shift right with round, 2 */
112 int16 div_16by16(int16 var1, int16 var2); /* Short division, 18 */
/frameworks/av/media/module/codecs/amrnb/common/include/
Dbasic_op.h211 Word16 var2, in Mac_32_16() argument
216 L_var3 = L_mac(L_var3, L_var1_hi, var2, pOverflow); in Mac_32_16()
218 product = mult(L_var1_lo, var2, pOverflow); in Mac_32_16()
275 static inline Word16 shl(Word16 var1, Word16 var2, Flag *pOverflow) in shl() argument
281 if (var2 < 0) in shl()
283 var2 = -var2; in shl()
284 if (var2 < 15) in shl()
286 var_out = var1 >> var2; in shl()
292 var_out = var1 << var2; in shl()
293 if (var_out >> var2 != var1) in shl()
[all …]
Dmpy_32_16.h95 Word16 var2, in Mpy_32_16() argument
105 __asm {SMULBB L_product, L_var1_hi, var2} in Mpy_32_16()
107 __asm {SMULBB result, L_var1_lo, var2} in Mpy_32_16()
117 Word16 var2,
123 register Word32 rc = var2;
161 Word16 var2,
168 L_product = (Word32) L_var1_hi * var2;
180 result = ((Word32)L_var1_lo * var2) >> 15;
Dbasic_op_arm_v5.h190 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
197 __asm {SMULBB result, var1, var2} in L_mac()
223 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
232 SMULBB product, var1, var2 in L_mult()
263 __inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
272 SMULBB product, var1, var2 in L_msu()
355 Word16 var2, in Mpy_32_16() argument
365 __asm {SMULBB L_product, L_var1_hi, var2} in Mpy_32_16()
367 __asm {SMULBB result, L_var1_lo, var2} in Mpy_32_16()
394 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
[all …]
Dbasic_op_c_equivalent.h200 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
204 result = (Word32) var1 * var2; in L_mac()
248 static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
252 L_product = (Word32) var1 * var2; in L_mult()
292 static inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
296 result = L_mult(var1, var2, pOverflow); in L_msu()
398 Word16 var2, in Mpy_32_16() argument
405 L_product = (Word32) L_var1_hi * var2; in Mpy_32_16()
417 result = ((Word32)L_var1_lo * var2) >> 15; in Mpy_32_16()
454 static inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
[all …]
Dl_mult.h109 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
118 SMULBB product, var1, var2 in L_mult()
127 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow)
130 register Word32 rb = var2;
151 static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow)
155 L_product = (Word32) var1 * var2;
Dl_msu.h109 __inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
118 SMULBB product, var1, var2 in L_msu()
127 __inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
131 register Word32 rc = var2;
152 static inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
156 result = L_mult(var1, var2, pOverflow);
Dmult.h109 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
117 SMULBB product, var1, var2 in mult()
128 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow)
131 register Word32 rb = var2;
159 static inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow)
163 product = ((Word32) var1 * var2) >> 15;
Dl_mac.h108 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
115 __asm {SMULBB result, var1, var2} in L_mac()
122 static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
126 register Word32 rc = var2;
146 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
150 result = (Word32) var1 * var2;
Dbasic_op_arm_gcc_v5.h197 static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
201 register Word32 rc = var2; in L_mac()
241 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
244 register Word32 rb = var2; in L_mult()
286 __inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
290 register Word32 rc = var2; in L_msu()
415 Word16 var2, in Mpy_32_16() argument
421 register Word32 rc = var2; in Mpy_32_16()
477 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
480 register Word32 rb = var2; in mult()
Dmac_32.h128 Word16 var2, in Mac_32_16() argument
133 L_var3 = L_mac(L_var3, L_var1_hi, var2, pOverflow); in Mac_32_16()
135 product = mult(L_var1_lo, var2, pOverflow); in Mac_32_16()
Ddiv_s.h103 Word16 div_s(Word16 var1, Word16 var2);
/frameworks/av/media/module/codecs/amrnb/common/src/
Dshr.cpp205 Word16 shr(Word16 var1, Word16 var2, Flag *pOverflow) in shr() argument
210 if (var2 != 0) in shr()
212 if (var2 > 0) in shr()
214 if (var2 >= 15) in shr()
222 result = (~((~var1) >> var2)); in shr()
226 result = (var1 >> var2); in shr()
232 if (var2 < -16) in shr()
234 var2 = -16; in shr()
237 var2 = -var2; /* Shift right negative is equivalent */ in shr()
240 temp_res = ((Word32) var1) << var2; in shr()
Dl_shr_r.cpp193 Word32 L_shr_r(Word32 L_var1, Word16 var2, Flag *pOverflow) in L_shr_r() argument
197 if (var2 > 31) in L_shr_r()
203 result = L_shr(L_var1, var2, pOverflow); in L_shr_r()
205 if (var2 > 0) in L_shr_r()
207 if ((L_var1 & ((Word32) 1 << (var2 - 1))) != 0) in L_shr_r()
Dshr_r.cpp196 Word16 shr_r(Word16 var1, Word16 var2, Flag *pOverflow) in shr_r() argument
206 if (var2 > 15) in shr_r()
212 var_out = shr(var1, var2, pOverflow); in shr_r()
213 if (var2 > 0) in shr_r()
215 if ((var1 & ((Word16) 1 << (var2 - 1))) != 0) in shr_r()
Ddiv_s.cpp210 Word16 div_s(Word16 var1, Word16 var2) in div_s() argument
225 if ((var1 > var2) || (var1 < 0)) in div_s()
231 if (var1 != var2) in div_s()
235 L_denom = (Word32) var2; in div_s()
Dadd.cpp176 Word16 add(Word16 var1, Word16 var2, Flag *pOverflow) in add() argument
182 sum = (Word32) var1 + var2; in add()
Dsub.cpp193 Word16 sub(Word16 var1, Word16 var2, Flag *pOverflow) in sub() argument
198 diff = (Word32) var1 - var2; in sub()
Dmult_r.cpp190 Word16 mult_r(Word16 var1, Word16 var2, Flag *pOverflow) in mult_r() argument
195 L_product_arr = ((Word32) var1) * var2; /* product */ in mult_r()

12