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