Lines Matching refs:shift
35 static PINLINE int fixed_point_convert(float xx, int shift);
36 static PINLINE int shift_up_inline(int value, unsigned int shift);
37 static PINLINE int shift_down_inline(int value, unsigned int shift);
42 static PINLINE int shift_up_inline(int value, unsigned int shift)
47 ASSERT(shift > 0);
53 retval = temp << shift;
64 static PINLINE int shift_down_inline(int value, unsigned int shift)
67 if (shift-- == 0)
70 return (((value >> shift) + 1) >> 1);
72 return (-((((-value) >> shift) + 1) >> 1));
75 static PINLINE int fixed_point_convert(float xx, int shift)
79 ASSERT(shift >= 0);
80 scaled_val = xx * (0x01 << shift);