lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-msys] Move mingw-msys to forums?
- Date: Mon, 14 Apr 2008 19:11:36 -0300 (ADT)
- From: selinger@xxxxxxxxxxxxxxx (Peter Selinger)
- Subject: ***BOGO*** Re: [Mingw-msys] floating point bug
Hi,
I am not sure if this list is the correct place for bug reports.
I found the following code in the floating point library
newlib/libm/mathfp/sf_isinf.c:
int isinff (float x)
{
__uint32_t wx;
int exp;
GET_FLOAT_WORD (wx, x);
exp = (wx & 0x7f800000) >> 23;
if ((exp == 0x7f8) && !(wx & 0xf0000))
return (1);
else
return (0);
}
Note that exp can never equal 0x7f8, so this function always returns 0.
What was probably meant was either >> 20, or exp == 0xff.
-- Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys