Lines Matching refs:shift
98 s32 qm_shl32(s32 op, int shift) in qm_shl32() argument
103 if (shift > 31) in qm_shl32()
104 shift = 31; in qm_shl32()
105 else if (shift < -31) in qm_shl32()
106 shift = -31; in qm_shl32()
107 if (shift >= 0) { in qm_shl32()
108 for (i = 0; i < shift; i++) in qm_shl32()
111 result = result >> (-shift); in qm_shl32()
123 s16 qm_shl16(s16 op, int shift) in qm_shl16() argument
128 if (shift > 15) in qm_shl16()
129 shift = 15; in qm_shl16()
130 else if (shift < -15) in qm_shl16()
131 shift = -15; in qm_shl16()
132 if (shift > 0) { in qm_shl16()
133 for (i = 0; i < shift; i++) in qm_shl16()
136 result = result >> (-shift); in qm_shl16()
147 s16 qm_shr16(s16 op, int shift) in qm_shr16() argument
149 return qm_shl16(op, -shift); in qm_shr16()