Lines Matching refs:lg2
3534 unsigned int lg2 = 0;
3545 lg2 = 4, x <<= 4;
3548 lg2 += 2, x <<= 2;
3551 lg2 += 1, x <<= 1;
3554 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
3591 unsigned int lg2 = 0;
3598 lg2 = 8, x <<= 8;
3601 lg2 += 4, x <<= 4;
3604 lg2 += 2, x <<= 2;
3607 lg2 += 1, x <<= 1;
3612 lg2 <<= 28;
3613 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
3624 * precision and that 'lg2' is current scaled by an extra 12 bits, so adjust
3630 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
3633 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3636 return (png_int_32)((lg2 + 2048) >> 12);
3729 png_exp8bit(png_fixed_point lg2)
3732 png_uint_32 x = png_exp(lg2);
3744 png_exp16bit(png_fixed_point lg2)
3747 png_uint_32 x = png_exp(lg2);
3789 png_int_32 lg2 = png_log8bit(value);
3792 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)
3819 png_int_32 lg2 = png_log16bit(value);
3822 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1) != 0)