Lines Matching refs:lg2
3647 unsigned int lg2 = 0;
3658 lg2 = 4, x <<= 4;
3661 lg2 += 2, x <<= 2;
3664 lg2 += 1, x <<= 1;
3667 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
3704 unsigned int lg2 = 0;
3711 lg2 = 8, x <<= 8;
3714 lg2 += 4, x <<= 4;
3717 lg2 += 2, x <<= 2;
3720 lg2 += 1, x <<= 1;
3725 lg2 <<= 28;
3726 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
3743 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
3746 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3749 return (png_int_32)((lg2 + 2048) >> 12);
3842 png_exp8bit(png_fixed_point lg2)
3845 png_uint_32 x = png_exp(lg2);
3857 png_exp16bit(png_fixed_point lg2)
3860 png_uint_32 x = png_exp(lg2);
3902 png_int_32 lg2 = png_log8bit(value);
3905 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)
3932 png_int_32 lg2 = png_log16bit(value);
3935 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)