X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 Precedence: bulk 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 > > 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 }; Correct. Can you commit in CVS or should I? Right, MartinS