[libpng16] Improved performance of new do_check_palette_indexes() function

(only update the value when it actually increases, move test for whether
the check is wanted out of the function.
This commit is contained in:
Glenn Randers-Pehrson
2012-06-06 13:30:30 -05:00
parent b1e7771d5e
commit 14ca47b453
5 changed files with 15 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
Libpng 1.6.0beta23 - June 4, 2012
Libpng 1.6.0beta23 - June 6, 2012
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
@@ -369,13 +369,16 @@ Version 1.6.0beta22 [May 23, 2012]
introducing new png_aligncast macros to do the cast in a way that clang
accepts.
Version 1.6.0beta23 [June 4, 2012]
Version 1.6.0beta23 [June 6, 2012]
Revised CMakeLists.txt to not attempt to make a symlink under mingw.
Made fixes for new optimization warnings from gcc 4.7.0. The compiler
performs an optimization which is safe; however it then warns about it.
Changing the type of 'palette_number' in pngvalid.c removes the warning.
Do not depend upon a GCC feature macro being available for use in generating
the linker mapfile symbol prefix.
Improved performance of new do_check_palette_indexes() function (only
update the value when it actually increases, move test for whether
the check is wanted out of the function.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit