From dbe0c9d8c748d2311ea1c086e441a7fe3a9b03c8 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Thu, 29 Jul 2010 20:28:36 -0500 Subject: [PATCH] [devel] Use FIXED_POINT in contrib/pngminim/decoder and encoder --- contrib/pngminim/decoder/pngusr.dfa | 10 ++++++++-- contrib/pngminim/encoder/pngusr.dfa | 10 ++++++++-- contrib/pngminim/preader/pngusr.dfa | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/contrib/pngminim/decoder/pngusr.dfa b/contrib/pngminim/decoder/pngusr.dfa index ec4495e5d..a8ccec26a 100644 --- a/contrib/pngminim/decoder/pngusr.dfa +++ b/contrib/pngminim/decoder/pngusr.dfa @@ -15,8 +15,14 @@ everything = off option SEQUENTIAL_READ on # You must choose fixed or floating point arithmetic: -option FLOATING_POINT on -# option FIXED_POINT on +# option FLOATING_POINT on +option FIXED_POINT on + +# You must chose the internal fixed point implementation or to +# use the system floating point. The latter is considerably +# smaller (by about 1kbyte on an x86 system): +# option FLOATING_ARITHMETIC on +option FLOATING_ARITHMETIC off # Your program will probably need other options. The example # program here, pngm2pnm, requires the following. Take a look diff --git a/contrib/pngminim/encoder/pngusr.dfa b/contrib/pngminim/encoder/pngusr.dfa index d596f13c2..603358096 100644 --- a/contrib/pngminim/encoder/pngusr.dfa +++ b/contrib/pngminim/encoder/pngusr.dfa @@ -13,8 +13,14 @@ everything = off option WRITE on # You must choose fixed or floating point arithmetic: -option FLOATING_POINT on -# option FIXED_POINT on +# option FLOATING_POINT on +option FIXED_POINT on + +# You must chose the internal fixed point implementation or to +# use the system floating point. The latter is considerably +# smaller (by about 1kbyte on an x86 system): +# option FLOATING_ARITHMETIC on +option FLOATING_ARITHMETIC off # Your program will probably need other options. The example # program here, pnm2pngm, requires the following. Take a look diff --git a/contrib/pngminim/preader/pngusr.dfa b/contrib/pngminim/preader/pngusr.dfa index 31e83a58b..0ebcc30d4 100644 --- a/contrib/pngminim/preader/pngusr.dfa +++ b/contrib/pngminim/preader/pngusr.dfa @@ -15,6 +15,7 @@ option PROGRESSIVE_READ on # You may choose fixed or floating point APIs: # option FLOATING_POINT on option FIXED_POINT on + # You must chose the internal fixed point implementation or to # use the system floating point. The latter is considerably # smaller (by about 1kbyte on an x86 system):