Lines Matching full:s16
26 s16 qm_muls16(s16 op1, s16 op2) in qm_muls16()
29 if (op1 == (s16) 0x8000 && op2 == (s16) 0x8000) in qm_muls16()
34 return (s16) (result >> 15); in qm_muls16()
59 s16 qm_add16(s16 op1, s16 op2) in qm_add16()
61 s16 result; in qm_add16()
64 result = (s16) 0x7fff; in qm_add16()
66 result = (s16) 0xffff8000; in qm_add16()
68 result = (s16) temp; in qm_add16()
78 s16 qm_sub16(s16 op1, s16 op2) in qm_sub16()
80 s16 result; in qm_sub16()
83 result = (s16) 0x7fff; in qm_sub16()
85 result = (s16) 0xffff8000; in qm_sub16()
87 result = (s16) temp; in qm_sub16()
123 s16 qm_shl16(s16 op, int shift) in qm_shl16()
126 s16 result; in qm_shl16()
147 s16 qm_shr16(s16 op, int shift) in qm_shr16()
156 s16 qm_norm32(s32 op) in qm_norm32()
172 static const s16 log_table[] = {
232 void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N) in qm_log10()
234 s16 s16norm, s16tableIndex, s16errorApproximation; in qm_log10()
252 s16tableIndex = (s16) (N >> (32 - (2 + LOG2_LOG_TABLE_SIZE))); in qm_log10()
256 s16tableIndex & (s16) ((1 << LOG2_LOG_TABLE_SIZE) - 1); in qm_log10()
269 s16errorApproximation = (s16) qm_mulu16(u16offset, in qm_log10()
274 s32log = qm_add16((s16) s32log, s16errorApproximation); in qm_log10()
292 *log10N = qm_muls16((s16) s32log, (s16) LOG10_2); in qm_log10()