Lines Matching refs:lg2
3569 unsigned int lg2 = 0;
3580 lg2 = 4, x <<= 4;
3583 lg2 += 2, x <<= 2;
3586 lg2 += 1, x <<= 1;
3589 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
3626 unsigned int lg2 = 0;
3633 lg2 = 8, x <<= 8;
3636 lg2 += 4, x <<= 4;
3639 lg2 += 2, x <<= 2;
3642 lg2 += 1, x <<= 1;
3647 lg2 <<= 28;
3648 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
3665 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
3668 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3671 return (png_int_32)((lg2 + 2048) >> 12);
3764 png_exp8bit(png_fixed_point lg2)
3767 png_uint_32 x = png_exp(lg2);
3779 png_exp16bit(png_fixed_point lg2)
3782 png_uint_32 x = png_exp(lg2);
3824 png_int_32 lg2 = png_log8bit(value);
3827 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)
3854 png_int_32 lg2 = png_log16bit(value);
3857 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)