Lines Matching refs:WORD16
23 static PLATFORM_INLINE WORD16 ixheaacd_sat16(WORD32 op1) { in ixheaacd_sat16()
24 WORD16 var_out; in ixheaacd_sat16()
29 var_out = (WORD16)(-32768); in ixheaacd_sat16()
31 var_out = (WORD16)(op1); in ixheaacd_sat16()
36 static PLATFORM_INLINE WORD16 ixheaacd_add16(WORD16 op1, WORD16 op2) { in ixheaacd_add16()
37 WORD16 var_out; in ixheaacd_add16()
39 var_out = ((WORD16)(op1 + op2)); in ixheaacd_add16()
43 static PLATFORM_INLINE WORD16 ixheaacd_add16_sat(WORD16 op1, WORD16 op2) { in ixheaacd_add16_sat()
44 WORD16 var_out; in ixheaacd_add16_sat()
52 static PLATFORM_INLINE WORD16 ixheaacd_sub16(WORD16 op1, WORD16 op2) { in ixheaacd_sub16()
53 WORD16 var_out; in ixheaacd_sub16()
55 var_out = ((WORD16)(op1 - op2)); in ixheaacd_sub16()
59 static PLATFORM_INLINE WORD16 ixheaacd_sub16_sat(WORD16 op1, WORD16 op2) { in ixheaacd_sub16_sat()
60 WORD16 var_out; in ixheaacd_sub16_sat()
68 static PLATFORM_INLINE WORD16 ixheaacd_mult16(WORD16 op1, WORD16 op2) { in ixheaacd_mult16()
69 WORD16 var_out; in ixheaacd_mult16()
71 var_out = ((WORD16)(((WORD32)op1 * (WORD32)op2) >> 16)); in ixheaacd_mult16()
75 static PLATFORM_INLINE WORD16 ixheaacd_mult16_shl(WORD16 op1, WORD16 op2) { in ixheaacd_mult16_shl()
76 WORD16 var_out; in ixheaacd_mult16_shl()
78 var_out = ((WORD16)(((WORD32)op1 * (WORD32)op2) >> 15)); in ixheaacd_mult16_shl()
82 static PLATFORM_INLINE WORD16 ixheaacd_mult16_shl_sat(WORD16 op1, WORD16 op2) { in ixheaacd_mult16_shl_sat()
83 WORD16 var_out; in ixheaacd_mult16_shl_sat()
91 static PLATFORM_INLINE WORD16 ixheaacd_shl16(WORD16 op1, WORD16 shift) { in ixheaacd_shl16()
92 WORD16 var_out; in ixheaacd_shl16()
94 var_out = (WORD16)(op1 << shift); in ixheaacd_shl16()
98 static PLATFORM_INLINE WORD16 ixheaacd_shl16_sat(WORD16 op1, WORD16 shift) { in ixheaacd_shl16_sat()
99 WORD16 var_out; in ixheaacd_shl16_sat()
110 static PLATFORM_INLINE WORD16 ixheaacd_shr16(WORD16 op1, WORD16 shift) { in ixheaacd_shr16()
111 WORD16 var_out; in ixheaacd_shr16()
113 var_out = ((WORD16)(op1 >> shift)); in ixheaacd_shr16()
117 static PLATFORM_INLINE WORD16 shl16_dir(WORD16 op1, WORD16 shift) { in shl16_dir()
118 WORD16 var_out; in shl16_dir()
122 var_out = ixheaacd_shr16(op1, (WORD16)(-shift)); in shl16_dir()
127 static PLATFORM_INLINE WORD16 shr16_dir(WORD16 op1, WORD16 shift) { in shr16_dir()
128 WORD16 var_out; in shr16_dir()
131 var_out = ixheaacd_shl16(op1, (WORD16)(-shift)); in shr16_dir()
138 static PLATFORM_INLINE WORD16 shl16_dir_sat(WORD16 op1, WORD16 shift) { in shl16_dir_sat()
139 WORD16 var_out; in shl16_dir_sat()
143 var_out = ixheaacd_shr16(op1, (WORD16)(-shift)); in shl16_dir_sat()
148 static PLATFORM_INLINE WORD16 ixheaacd_shr16_dir_sat(WORD16 op1, WORD16 shift) { in ixheaacd_shr16_dir_sat()
149 WORD16 var_out; in ixheaacd_shr16_dir_sat()
152 var_out = ixheaacd_shl16_sat(op1, (WORD16)(-shift)); in ixheaacd_shr16_dir_sat()
159 static PLATFORM_INLINE WORD16 norm16(WORD16 op1) { in norm16()
160 WORD16 var_out; in norm16()
165 if ((WORD16)0xffff == op1) { in norm16()
169 op1 = (WORD16)(~op1); in norm16()
180 static PLATFORM_INLINE WORD16 bin_expo16(WORD16 op1) { in bin_expo16()
181 WORD16 var_out; in bin_expo16()
183 var_out = ((WORD16)(15 - norm16(op1))); in bin_expo16()
187 static PLATFORM_INLINE WORD16 ixheaacd_abs16(WORD16 op1) { in ixheaacd_abs16()
188 WORD16 var_out; in ixheaacd_abs16()
191 var_out = (WORD16)(-op1); in ixheaacd_abs16()
198 static PLATFORM_INLINE WORD16 ixheaacd_abs16_sat(WORD16 op1) { in ixheaacd_abs16_sat()
199 WORD16 var_out; in ixheaacd_abs16_sat()
205 var_out = (WORD16)(-op1); in ixheaacd_abs16_sat()
213 static PLATFORM_INLINE WORD16 ixheaacd_negate16(WORD16 op1) { in ixheaacd_negate16()
214 WORD16 var_out; in ixheaacd_negate16()
219 var_out = (WORD16)(-op1); in ixheaacd_negate16()
224 static PLATFORM_INLINE WORD16 ixheaacd_min16(WORD16 op1, WORD16 op2) { in ixheaacd_min16()
225 WORD16 var_out; in ixheaacd_min16()
231 static PLATFORM_INLINE WORD16 ixheaacd_max16(WORD16 op1, WORD16 op2) { in ixheaacd_max16()
232 WORD16 var_out; in ixheaacd_max16()
238 static PLATFORM_INLINE WORD16 div16(WORD16 op1, WORD16 op2, WORD16 *q_format) { in div16()
241 WORD16 sign = 0; in div16()
244 WORD16 q_nr, q_dr; in div16()
252 sign = (WORD16)(sign ^ -1); in div16()
257 sign = (WORD16)(sign ^ -1); in div16()
271 *q_format = (WORD16)(14 + q_nr - q_dr); in div16()
288 return (WORD16)quotient; in div16()
291 static PLATFORM_INLINE WORD16 mac16(WORD16 c, WORD16 op1, WORD16 op2) { in mac16()
292 WORD16 var_out; in mac16()
299 static PLATFORM_INLINE WORD16 mac16_sat(WORD16 c, WORD16 op1, WORD16 op2) { in mac16_sat()
300 WORD16 var_out; in mac16_sat()
307 static PLATFORM_INLINE WORD16 mac16_shl(WORD16 c, WORD16 op1, WORD16 op2) { in mac16_shl()
308 WORD16 var_out; in mac16_shl()
315 static PLATFORM_INLINE WORD16 mac16_shl_sat(WORD16 c, WORD16 op1, WORD16 op2) { in mac16_shl_sat()
316 WORD16 var_out; in mac16_shl_sat()
325 static PLATFORM_INLINE WORD16 ixheaacd_round16(WORD32 op1) { in ixheaacd_round16()
326 WORD16 var_out; in ixheaacd_round16()
328 var_out = (WORD16)(ixheaacd_add32_sat(op1, 0x8000) >> 16); in ixheaacd_round16()