www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/01/01/15:58:24

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
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 <libc/ieee.h>

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 <libc/ieee.h>
 
-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

<HTML><FONT FACE=3Darial,helvetica><HTML><FONT  SIZE=3D3 PTSIZE=3D12 FAMILY=
=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">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>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D2 PTSIZE=3D10 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><=
BR>
/* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */<BR>
#include &lt;libc/ieee.h&gt;<BR>
<BR>
long_double_t __dj_huge_vall =3D { 0x00000000, 0x00000000, 0x7fff, 0x0 };<BR=
>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D3 PTSIZE=3D12 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><=
BR>
This constant is actually a denormal and should be:<BR>
<BR>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D2 PTSIZE=3D10 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">l=
ong_double_t __dj_huge_vall =3D { 0x00000000, 0x80000000, 0x7fff, 0x0 };<BR>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D3 PTSIZE=3D12 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><=
BR>
The patch is:<BR>
<BR>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D2 PTSIZE=3D10 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">-=
-- c:/djgpp.204/src/libc/c99/math/hugevall.c   2003-01-23 14:50:52.000000000=
 -0500<BR>
+++ c:/gputil/hugevall.c    2004-01-01 15:00:02.000000000 -0500<BR>
@@ -1,4 +1,4 @@<BR>
 /* Copyright (C) 2003 DJ Delorie, see COPYING.DJ for details */<BR>
 #include &lt;libc/ieee.h&gt;<BR>
 <BR>
-long_double_t __dj_huge_vall =3D { 0x00000000, 0x00000000, 0x7fff, 0x0 };<B=
R>
+long_double_t __dj_huge_vall =3D { 0x00000000, 0x80000000, 0x7fff, 0x0 };<B=
R>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D3 PTSIZE=3D12 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><=
BR>
</FONT></HTML>
--part1_1e5.16aba5f7.2d25e3a5_boundary--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019