Lines Matching refs:lg2
3486 unsigned int lg2 = 0;
3497 lg2 = 4, x <<= 4;
3500 lg2 += 2, x <<= 2;
3503 lg2 += 1, x <<= 1;
3506 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
3542 unsigned int lg2 = 0;
3549 lg2 = 8, x <<= 8;
3552 lg2 += 4, x <<= 4;
3555 lg2 += 2, x <<= 2;
3558 lg2 += 1, x <<= 1;
3563 lg2 <<= 28;
3564 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
3581 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
3584 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
3587 return (png_int_32)((lg2 + 2048) >> 12);
3679 png_exp8bit(png_fixed_point lg2)
3682 png_uint_32 x = png_exp(lg2);
3694 png_exp16bit(png_fixed_point lg2)
3697 png_uint_32 x = png_exp(lg2);
3715 png_int_32 lg2 = png_log8bit(value);
3718 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1))
3739 png_int_32 lg2 = png_log16bit(value);
3742 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1))