delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/01/02/12:31:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: <ams AT ludd DOT luth DOT se>
Message-Id: <200401021729.i02HTiOI013519@speedy.ludd.luth.se>
Subject: Re: Patch to hugevall.c
In-Reply-To: <1e5.16aba5f7.2d25e3a5@aol.com> "from Kbwms@aol.com at Jan 1, 2004
03:57:09 pm"
To: djgpp-workers AT delorie DOT com
Date: Fri, 2 Jan 2004 18:29:44 +0100 (CET)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
X-MailScanner: Found to be clean
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

According to Kbwms AT aol DOT com:
> 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 };


Correct. Can you commit in CVS or should I?


Right,

						MartinS

- Raw text -


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