/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
D | basic_op.h | 40 #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/ |
D | norm_s.cpp | 197 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()
|
D | shr.cpp | 205 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()
|
D | negate.cpp | 164 Word16 negate(Word16 var1) in negate() argument 173 var1 = (var1 == MIN_16) ? MAX_16 : -var1; in negate() 178 return (var1); in negate()
|
D | div_s.cpp | 210 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()
|
D | shr_r.cpp | 196 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()
|
D | l_deposit_h.cpp | 163 Word32 L_deposit_h(Word16 var1) in L_deposit_h() argument 176 return ((Word32) var1 << 16); in L_deposit_h()
|
D | l_deposit_l.cpp | 163 Word32 L_deposit_l(Word16 var1) in L_deposit_l() argument 176 return ((Word32) var1); in L_deposit_l()
|
D | add.cpp | 176 Word16 add(Word16 var1, Word16 var2, Flag *pOverflow) in add() argument 182 sum = (Word32) var1 + var2; in add()
|
D | sub.cpp | 193 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/ |
D | pvamrwbdecoder_basic_op_cequivalent.h | 88 __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 …]
|
D | pvamrwbdecoder_basic_op_armv5.h | 62 __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 …]
|
D | pvamrwbdecoder_basic_op.h | 84 __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()
|
D | pvamrwbdecoder_basic_op_gcc_armv5.h | 59 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 …]
|
D | pvamrwb_math_op.cpp | 94 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()
|
D | pvamrwb_math_op.h | 109 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/ |
D | norm_s.h | 106 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;
|
D | basic_op.h | 244 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()
|
D | l_mult.h | 109 __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;
|
D | mult.h | 109 __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;
|
D | l_msu.h | 109 __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);
|
D | l_mac.h | 108 __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;
|
D | basic_op_arm_v5.h | 190 __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()
|
D | basic_op_c_equivalent.h | 200 __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()
|
D | basic_op_arm_gcc_v5.h | 197 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()
|