Lines Matching refs:s16
37 s16 qm_muls16(s16 op1, s16 op2) in qm_muls16()
40 if (op1 == (s16) 0x8000 && op2 == (s16) 0x8000) in qm_muls16()
45 return (s16) (result >> 15); in qm_muls16()
70 s16 qm_add16(s16 op1, s16 op2) in qm_add16()
72 s16 result; in qm_add16()
75 result = (s16) 0x7fff; in qm_add16()
77 result = (s16) 0xffff8000; in qm_add16()
79 result = (s16) temp; in qm_add16()
89 s16 qm_sub16(s16 op1, s16 op2) in qm_sub16()
91 s16 result; in qm_sub16()
94 result = (s16) 0x7fff; in qm_sub16()
96 result = (s16) 0xffff8000; in qm_sub16()
98 result = (s16) temp; in qm_sub16()
134 s16 qm_shl16(s16 op, int shift) in qm_shl16()
137 s16 result; in qm_shl16()
158 s16 qm_shr16(s16 op, int shift) in qm_shr16()
167 s16 qm_norm32(s32 op) in qm_norm32()
183 static const s16 log_table[] = {
242 void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N) in qm_log10()
244 s16 s16norm, s16tableIndex, s16errorApproximation; in qm_log10()
262 s16tableIndex = (s16) (N >> (32 - (2 + LOG2_LOG_TABLE_SIZE))); in qm_log10()
266 s16tableIndex & (s16) ((1 << LOG2_LOG_TABLE_SIZE) - 1); in qm_log10()
279 s16errorApproximation = (s16) qm_mulu16(u16offset, in qm_log10()
284 s32log = qm_add16((s16) s32log, s16errorApproximation); in qm_log10()
302 *log10N = qm_muls16((s16) s32log, (s16) LOG10_2); in qm_log10()