Lines Matching full:reciprocal
1565 png_uint_32 reciprocal = 0;
1570 /* Calculate a reciprocal. The correct calculation is simply
1572 * allows correct rounding by adding .5 before the shift. 'reciprocal'
1576 reciprocal = ((0xffff<<15)+(alpha>>1))/alpha;
1594 * component*reciprocal is less than 2^31.
1598 png_uint_32 calc = component * reciprocal;
1623 * Calculate an alpha reciprocal to reverse pre-multiplication. As above the
1631 png_uint_32 reciprocal/*from the above macro*/)
1647 * component*reciprocal is less than 2^31.
1654 * be exact!) [Could also test reciprocal != 0]
1658 component *= reciprocal;
1717 png_uint_32 reciprocal = 0;
1724 reciprocal = UNP_RECIPROCAL(alpha);
1728 *out_ptr++ = png_unpremultiply(*in_ptr++, alpha, reciprocal);
1835 png_uint_32 reciprocal = 0;
1837 /* Calculate a reciprocal, as in the png_write_image_8bit code above
1842 reciprocal = (((0xffff*0xff)<<7)+(alpha>>1))/alpha;
1851 alpha, reciprocal);
1853 reciprocal);
1855 reciprocal);
1860 png_unpremultiply(entry[afirst], alpha, reciprocal);