mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng15] Removed #if/#else/#endif from inside two pow() calls in pngvalid.c
because they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3 when using its "__builtin_pow()" function.
This commit is contained in:
parent
d485bd1379
commit
beaacb7821
3
ANNOUNCE
3
ANNOUNCE
@ -39,6 +39,9 @@ Version 1.5.19beta02 [March 17, 2014]
|
|||||||
Moved configuration information from the manual to the INSTALL file.
|
Moved configuration information from the manual to the INSTALL file.
|
||||||
|
|
||||||
Version 1.5.19beta03 [March 17, 2014]
|
Version 1.5.19beta03 [March 17, 2014]
|
||||||
|
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
||||||
|
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
||||||
|
when using its "__builtin_pow()" function.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
3
CHANGES
3
CHANGES
@ -4215,6 +4215,9 @@ Version 1.5.19beta02 [March 17, 2014]
|
|||||||
Moved configuration information from the manual to the INSTALL file.
|
Moved configuration information from the manual to the INSTALL file.
|
||||||
|
|
||||||
Version 1.5.19beta03 [March 17, 2014]
|
Version 1.5.19beta03 [March 17, 2014]
|
||||||
|
Removed #if/#else/#endif from inside two pow() calls in pngvalid.c because
|
||||||
|
they were handled improperly by Portland Group's PGI-14.1 - PGI-14.3
|
||||||
|
when using its "__builtin_pow()" function.
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
|||||||
@ -6776,14 +6776,14 @@ image_transform_png_set_rgb_to_gray_ini(PNG_CONST image_transform *this,
|
|||||||
* conversion adds another +/-2 in the 16-bit case and
|
* conversion adds another +/-2 in the 16-bit case and
|
||||||
* +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case.
|
* +/-(1<<(15-PNG_MAX_GAMMA_8)) in the 8-bit case.
|
||||||
*/
|
*/
|
||||||
that->pm->limit += pow(
|
that->pm->limit +=
|
||||||
# if PNG_MAX_GAMMA_8 < 14
|
# if PNG_MAX_GAMMA_8 < 14
|
||||||
(that->this.bit_depth == 16 ? 8. :
|
pow((that->this.bit_depth == 16 ?
|
||||||
6. + (1<<(15-PNG_MAX_GAMMA_8)))
|
8. : 6. + (1<<(15-PNG_MAX_GAMMA_8)))/65535, data.gamma);
|
||||||
# else
|
# else
|
||||||
8.
|
pow((that->this.bit_depth == 16 ?
|
||||||
|
8. : 8. + (1<<(15-PNG_MAX_GAMMA_8)))/65535, data.gamma);
|
||||||
# endif
|
# endif
|
||||||
/65535, data.gamma);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -6801,13 +6801,12 @@ image_transform_png_set_rgb_to_gray_ini(PNG_CONST image_transform *this,
|
|||||||
* internal calculation errors, not the actual limit imposed by
|
* internal calculation errors, not the actual limit imposed by
|
||||||
* pngvalid on the output errors.
|
* pngvalid on the output errors.
|
||||||
*/
|
*/
|
||||||
that->pm->limit += pow(
|
that->pm->limit +=
|
||||||
# if DIGITIZE
|
# if DIGITIZE
|
||||||
1.1
|
pow(1.1 /255, data.gamma);
|
||||||
# else
|
# else
|
||||||
1.
|
pow(1.0 /255, data.gamma);
|
||||||
# endif
|
# endif
|
||||||
/255, data.gamma);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user