summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-11-28 11:05:54 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-11-28 11:05:54 -0600
commit8973ee17bbb90dc94bf1c8f0f3a2bd92370a6ef0 (patch)
tree9b7be37241b4fa5c5f854dd984b07af1e3228889
parent2e31b96a5a180e2a133e529493c8846c66a6598e (diff)
downloadlibpng-8973ee17bbb90dc94bf1c8f0f3a2bd92370a6ef0.tar.gz
[libpng15] Fixed two other instances of "#if PNG_DO_BC" in png.c
-rw-r--r--png.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/png.c b/png.c
index 3994778d4..489d1593b 100644
--- a/png.c
+++ b/png.c
@@ -2346,17 +2346,18 @@ png_log16bit(png_uint_32 x)
static png_uint_32
png_32bit_exp[16] =
{
-# if PNG_DO_BC
+# ifdef PNG_DO_BC
for (i=0;i<16;++i) { .5 + e(-i/16*l(2))*2^32; }
-# endif
+# else
/* NOTE: the first entry is deliberately set to the maximum 32-bit value. */
4294967295U, 4112874773U, 3938502376U, 3771522796U, 3611622603U, 3458501653U,
3311872529U, 3171459999U, 3037000500U, 2908241642U, 2784941738U, 2666869345U,
2553802834U, 2445529972U, 2341847524U, 2242560872U
+# endif
};
/* Adjustment table; provided to explain the numbers in the code below. */
-#if PNG_DO_BC
+#ifdef PNG_DO_BC
for (i=11;i>=0;--i){ print i, " ", (1 - e(-(2^i)/65536*l(2))) * 2^(32-i), "\n"}
11 44937.64284865548751208448
10 45180.98734845585101160448