Lines Matching full:shift
93 * Description: This function make a 32 bit saturated left shift when the
94 * specified shift is +ve. This function will make a 32 bit right shift when
95 * the specified shift is -ve. This function return the result after shifting
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()
118 * Description: This function make a 16 bit saturated left shift when the
119 * specified shift is +ve. This function will make a 16 bit right shift when
120 * the specified shift is -ve. This function return the result after shifting
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()
143 * Description: This function make a 16 bit right shift when shift is +ve.
144 * This function make a 16 bit saturated left shift when shift is -ve. This
145 * function return the result of the shift operation.
147 s16 qm_shr16(s16 op, int shift) in qm_shr16() argument
149 return qm_shl16(op, -shift); in qm_shr16()