Home
last modified time | relevance | path

Searched refs:var1 (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dbasic_op.h40 #define negate(var1) ((Word16)(((var1) == MIN_16) ? MAX_16 : (-(var1)))) /* Short… argument
51 #define vo_shr_r(var1, var2) (((var1)+((Word16)(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/libstagefright/codecs/amrnb/common/src/
Dnorm_s.cpp197 Word16 norm_s(Word16 var1) in norm_s() argument
209 if (var1) in norm_s()
211 Word16 y = var1 - (var1 < 0); in norm_s()
212 var1 = y ^(y >> 15); in norm_s()
214 while (!(0x4000 & var1)) in norm_s()
217 if ((0x2000 & var1)) in norm_s()
222 if ((0x1000 & var1)) in norm_s()
227 if ((0x0800 & var1)) in norm_s()
232 var1 <<= 4; in norm_s()
Dshr.cpp205 Word16 shr(Word16 var1, Word16 var2, Flag *pOverflow) in shr() argument
216 result = ((var1 < 0) ? -1 : 0); in shr()
220 if (var1 < 0) in shr()
222 result = (~((~var1) >> var2)); in shr()
226 result = (var1 >> var2); in shr()
240 temp_res = ((Word32) var1) << var2; in shr()
246 result = ((var1 > 0) ? MAX_16 : MIN_16); in shr()
253 result = var1; in shr()
Dnegate.cpp164 Word16 negate(Word16 var1) in negate() argument
173 var1 = (var1 == MIN_16) ? MAX_16 : -var1; in negate()
178 return (var1); in negate()
Ddiv_s.cpp210 Word16 div_s(Word16 var1, Word16 var2) in div_s() argument
225 if ((var1 > var2) || (var1 < 0)) in div_s()
229 if (var1) in div_s()
231 if (var1 != var2) in div_s()
234 L_num = (Word32) var1; in div_s()
Dshr_r.cpp196 Word16 shr_r(Word16 var1, Word16 var2, Flag *pOverflow) in shr_r() argument
212 var_out = shr(var1, var2, pOverflow); in shr_r()
215 if ((var1 & ((Word16) 1 << (var2 - 1))) != 0) in shr_r()
Dl_deposit_h.cpp163 Word32 L_deposit_h(Word16 var1) in L_deposit_h() argument
176 return ((Word32) var1 << 16); in L_deposit_h()
Dl_deposit_l.cpp163 Word32 L_deposit_l(Word16 var1) in L_deposit_l() argument
176 return ((Word32) var1); in L_deposit_l()
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()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
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
69 mov L_var_out, var1, lsl #16 in add_int16()
79 __inline int16 sub_int16(int16 var1, int16 var2) in sub_int16() argument
86 mov L_var_out, var1, 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.h84 __inline int16 negate_int16(int16 var1) in negate_int16() argument
86 return (((var1 == MIN_16) ? MAX_16 : -var1)); in negate_int16()
114 __inline int16 shl_int16(int16 var1, int16 var2) in shl_int16() argument
121 var_out = var1 >> var2; in shl_int16()
126 var_out = var1 << var2; in shl_int16()
127 if (var_out >> var2 != var1) in shl_int16()
129 var_out = (var1 >> 15) ^ MAX_16; in shl_int16()
Dpvamrwbdecoder_basic_op_gcc_armv5.h59 static inline int16 sub_int16(int16 var1, int16 var2) in sub_int16() argument
63 register int32 ra = (int32)var1; in sub_int16()
80 static inline int16 add_int16(int16 var1, int16 var2) in add_int16() argument
84 register int32 ra = (int32)var1; in add_int16()
155 static inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32() argument
158 register int32 ra = (int32)var1; 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
177 register int32 ra = (int32)var1; in mac_16by16_to_int32()
193 static inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32() argument
196 register int32 ra = (int32)var1; 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()
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()
218 if (var1) in div_16by16()
220 if (var1 != var2) in div_16by16()
223 L_num = (int32) var1; 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/libstagefright/codecs/amrnb/common/include/
Dnorm_s.h106 Word16 norm_s(Word16 var1);
113 Word32 var1 = var << 16;
117 CMP var1, #0
118 EORNE var1, var1, var1, LSL #1
119 CLZNE var_out, var1
127 static inline Word16 norm_s(Word16 var1)
130 register Word32 ra = var1 << 16;
Dbasic_op.h244 static inline Word16 negate(Word16 var1) in negate() argument
246 return (((var1 == MIN_16) ? MAX_16 : -var1)); in negate()
275 static inline Word16 shl(Word16 var1, Word16 var2, Flag *pOverflow) in shl() argument
286 var_out = var1 >> var2; in shl()
292 var_out = var1 << var2; in shl()
293 if (var_out >> var2 != var1) in shl()
295 var_out = (var1 >> 15) ^ MAX_16; in shl()
430 static inline Word16 abs_s(Word16 var1) in abs_s() argument
433 Word16 y = var1 - (var1 < 0); in abs_s()
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)
129 register Word32 ra = var1;
151 static inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow)
155 L_product = (Word32) var1 * var2;
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)
130 register Word32 ra = var1;
159 static inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow)
163 product = ((Word32) var1 * var2) >> 15;
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)
130 register Word32 rb = var1;
152 static inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
156 result = L_mult(var1, var2, pOverflow);
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)
125 register Word32 rb = var1;
146 __inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow)
150 result = (Word32) var1 * var2;
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()
394 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
402 SMULBB product, var1, var2 in mult()
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()
454 static inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
458 product = ((Word32) var1 * var2) >> 15; in mult()
Dbasic_op_arm_gcc_v5.h197 static inline Word32 L_mac(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_mac() argument
200 register Word32 rb = var1; in L_mac()
241 __inline Word32 L_mult(Word16 var1, Word16 var2, Flag *pOverflow) in L_mult() argument
243 register Word32 ra = var1; in L_mult()
286 __inline Word32 L_msu(Word32 L_var3, Word16 var1, Word16 var2, Flag *pOverflow) in L_msu() argument
289 register Word32 rb = var1; in L_msu()
477 __inline Word16 mult(Word16 var1, Word16 var2, Flag *pOverflow) in mult() argument
479 register Word32 ra = var1; in mult()

12