X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Kbwms AT aol DOT com Message-ID: <1e5.16aba5f7.2d25e3a5@aol.com> Date: Thu, 1 Jan 2004 15:57:09 EST Subject: Patch to hugevall.c To: djgpp-workers AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="part1_1e5.16aba5f7.2d25e3a5_boundary" X-Mailer: 8.0 for Windows sub 6021 Reply-To: djgpp-workers AT delorie DOT com --part1_1e5.16aba5f7.2d25e3a5_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The constant in djlsr204.zip, file src/libc/c99/math/hugevall.c, which purports to be an infinity of type long double, is incorrect: /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */ #include long_double_t __dj_huge_vall = { 0x00000000, 0x00000000, 0x7fff, 0x0 }; This constant is actually a denormal and should be: long_double_t __dj_huge_vall = { 0x00000000, 0x80000000, 0x7fff, 0x0 }; The patch is: --- c:/djgpp.204/src/libc/c99/math/hugevall.c 2003-01-23 14:50:52.000000000 -0500 +++ c:/gputil/hugevall.c 2004-01-01 15:00:02.000000000 -0500 @@ -1,4 +1,4 @@ /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */ #include -long_double_t __dj_huge_vall = { 0x00000000, 0x00000000, 0x7fff, 0x0 }; +long_double_t __dj_huge_vall = { 0x00000000, 0x80000000, 0x7fff, 0x0 }; --part1_1e5.16aba5f7.2d25e3a5_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable The constant in djlsr204.zip, file sr= c/libc/c99/math/hugevall.c, which purports to be an infinity of type long do= uble, is incorrect:
<= BR> /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
#include <libc/ieee.h>

long_double_t __dj_huge_vall =3D { 0x00000000, 0x00000000, 0x7fff, 0x0 };
<= BR> This constant is actually a denormal and should be:

l= ong_double_t __dj_huge_vall =3D { 0x00000000, 0x80000000, 0x7fff, 0x0 };
<= BR> The patch is:

-= -- c:/djgpp.204/src/libc/c99/math/hugevall.c 2003-01-23 14:50:52.000000000= -0500
+++ c:/gputil/hugevall.c 2004-01-01 15:00:02.000000000 -0500
@@ -1,4 +1,4 @@
/* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */
#include <libc/ieee.h>

-long_double_t __dj_huge_vall =3D { 0x00000000, 0x00000000, 0x7fff, 0x0 }; +long_double_t __dj_huge_vall =3D { 0x00000000, 0x80000000, 0x7fff, 0x0 };
<= BR> --part1_1e5.16aba5f7.2d25e3a5_boundary--