Lines Matching refs:shift

1199           * be increased.  Note that the arithmetic shift
1626 * required shift is 31.
1982 * integer bits (the top 4) simply determine a shift.
2032 * is determined by the above table and the shift. Notice that the values
2169 * 'num' 256 entry subtables, where 'num' is determined by 'shift' - the amount
2170 * to shift the input values right (or 16-number_of_signifiant_bits).
2178 PNG_CONST unsigned int shift, PNG_CONST png_fixed_point gamma_val)
2180 /* Various values derived from 'shift': */
2181 PNG_CONST unsigned int num = 1U << (8U - shift);
2182 PNG_CONST unsigned int max = (1U << (16U - shift))-1U;
2183 PNG_CONST unsigned int max_by_2 = 1U << (15U-shift);
2210 png_uint_32 ig = (j << (8-shift)) + i;
2216 if (shift)
2230 png_uint_32 ig = (j << (8-shift)) + i;
2232 if (shift)
2246 PNG_CONST unsigned int shift, PNG_CONST png_fixed_point gamma_val)
2248 PNG_CONST unsigned int num = 1U << (8U - shift);
2249 PNG_CONST unsigned int max = (1U << (16U - shift))-1U;
2289 /* Adjust (round) to (16-shift) bits: */
2294 table[last & (0xffU >> shift)][last >> (8U - shift)] = out;
2302 table[last & (0xff >> shift)][last >> (8U - shift)] = 65535U;
2357 png_byte shift, sig_bit;
2391 shift = (png_byte)(16U - sig_bit); /* shift == insignificant bits */
2394 shift = 0; /* keep all 16 bits */
2402 if (shift < (16U - PNG_MAX_GAMMA_8))
2403 shift = (16U - PNG_MAX_GAMMA_8);
2406 if (shift > 8U)
2407 shift = 8U; /* Guarantees at least one table! */
2409 png_ptr->gamma_shift = shift;
2419 png_build_16to8_table(png_ptr, &png_ptr->gamma_16_table, shift,
2425 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_table, shift,
2435 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_to_1, shift,
2442 png_build_16bit_table(png_ptr, &png_ptr->gamma_16_from_1, shift,