From: Bruno Haible Date: Sun, 25 Feb 2007 18:08:24 +0000 (+0000) Subject: Add comment about FLT_RADIX. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4dcbfedc7468a2d820ffa82e656eaf75b159c0e;p=pspp Add comment about FLT_RADIX. --- diff --git a/lib/printf-frexp.c b/lib/printf-frexp.c index 46750e485e..e6032a4fb0 100644 --- a/lib/printf-frexp.c +++ b/lib/printf-frexp.c @@ -29,6 +29,10 @@ # include # include +/* This file assumes FLT_RADIX = 2. If FLT_RADIX is a power of 2 greater + than 2, or not even a power of 2, some rounding errors can occur, so that + then the returned mantissa is only guaranteed to be <= 2.0, not < 2.0. */ + # ifdef USE_LONG_DOUBLE # define FUNC printf_frexpl # define DOUBLE long double