Lines Matching defs:shift
2115 // naive test is to shift the code_buffer down so k bits are
2120 // that way we don't need to shift inside the loop.
2299 int shift = j->succ_low;
2320 data[zig] = (short) ((r >> 8) * (1 << shift));
2338 data[zig] = (short) (stbi__extend_receive(j,s) * (1 << shift));
2506 // to encode as 0..255 by adding 128, so we'll add that before the shift
2562 // butterfly a/b, add bias, then shift by "s" and pack
2585 #define dct_pass(bias,shift) \
2607 dct_bfly32o(row0,row7, x0,x7,bias,shift); \
2608 dct_bfly32o(row1,row6, x1,x6,bias,shift); \
2609 dct_bfly32o(row2,row5, x2,x5,bias,shift); \
2610 dct_bfly32o(row3,row4, x3,x4,bias,shift); \
2748 // butterfly a/b, then shift using "shiftop" by "s" and pack
2757 #define dct_pass(shiftop, shift) \
2791 dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \
2792 dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \
2793 dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \
2794 dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \
2846 // 17. so do a non-rounding shift of 16 first then follow
2847 // up with a rounding shift by 1.
3710 // unpack to short (and left-shift cr, cb by 8)
4117 // to bit reverse n bits, reverse 16 and shift
4118 // e.g. 11 bits, bit reverse and shift away 5
5394 static int stbi__shiftsigned(unsigned int v, int shift, int bits)
5404 if (shift < 0)
5405 v <<= -shift;
5407 v >>= shift;
5670 // right shift amt to put high bit in position #7