Lines Matching refs:lg2
3566 unsigned int lg2 = 0;
3577 lg2 = 4, x <<= 4;
3580 lg2 += 2, x <<= 2;
3583 lg2 += 1, x <<= 1;
3586 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
3623 unsigned int lg2 = 0;
3630 lg2 = 8, x <<= 8;
3633 lg2 += 4, x <<= 4;
3636 lg2 += 2, x <<= 2;
3639 lg2 += 1, x <<= 1;
3644 lg2 <<= 28;
3645 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
3662 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
3665 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3668 return (png_int_32)((lg2 + 2048) >> 12);
3761 png_exp8bit(png_fixed_point lg2)
3764 png_uint_32 x = png_exp(lg2);
3776 png_exp16bit(png_fixed_point lg2)
3779 png_uint_32 x = png_exp(lg2);
3821 png_int_32 lg2 = png_log8bit(value);
3824 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)
3851 png_int_32 lg2 = png_log16bit(value);
3854 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)