Lines Matching refs:lg2
2232 unsigned int lg2 = 0;
2243 lg2 = 4, x <<= 4;
2246 lg2 += 2, x <<= 2;
2249 lg2 += 1, x <<= 1;
2252 return (png_int_32)((lg2 << 16) + ((png_8bit_l2[x-128]+32768)>>16));
2288 unsigned int lg2 = 0;
2295 lg2 = 8, x <<= 8;
2298 lg2 += 4, x <<= 4;
2301 lg2 += 2, x <<= 2;
2304 lg2 += 1, x <<= 1;
2309 lg2 <<= 28;
2310 lg2 += (png_8bit_l2[(x>>8)-128]+8) >> 4;
2327 lg2 += ((23591U * (65536U-x)) + (1U << (16+6-12-1))) >> (16+6-12);
2330 lg2 -= ((23499U * (x-65536U)) + (1U << (16+6-12-1))) >> (16+6-12);
2333 return (png_int_32)((lg2 + 2048) >> 12);
2429 png_exp8bit(png_fixed_point lg2)
2432 png_uint_32 x = png_exp(lg2);
2443 png_exp16bit(png_fixed_point lg2)
2446 png_uint_32 x = png_exp(lg2);
2463 png_int_32 lg2 = png_log8bit(value);
2466 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1))
2486 png_int_32 lg2 = png_log16bit(value);
2489 if (png_muldiv(&res, gamma_val, lg2, PNG_FP_1))