Re: __builtin_isnormal question

2018-06-05 Thread Andrew Haley
On 06/04/2018 09:44 PM, Steve Ellcey wrote: > 0.0 is a normal (as opposed to a denormalized) number isn't > it? Or is zero special? In addition to the other answers, yes, zero is special. Normal numbers in IEEE-754 have an implicit leading 1 bit. Zero is a case of a denormal number. -- Andrew

Re: __builtin_isnormal question

2018-06-04 Thread Liu Hao
在 2018/6/5 4:44, Steve Ellcey 写道: Is there a bug in __builtin_isnormal or am I just confused as to what it means? There doesn't seem to be any actual definition/documentation for the function. __builtin_isnormal(0.0) is returning false. That seems wrong to me, 0.0 is a normal (as opposed to a

Re: __builtin_isnormal question

2018-06-04 Thread Andrew Pinski
On Mon, Jun 4, 2018 at 1:44 PM Steve Ellcey wrote: > > Is there a bug in __builtin_isnormal or am I just confused as to what it > means? There doesn't seem to be any actual definition/documentation for > the function. __builtin_isnormal(0.0) is returning false. That seems > wrong to me, 0.0 is

__builtin_isnormal question

2018-06-04 Thread Steve Ellcey
Is there a bug in __builtin_isnormal or am I just confused as to what it means? There doesn't seem to be any actual definition/documentation for the function. __builtin_isnormal(0.0) is returning false. That seems wrong to me, 0.0 is a normal (as opposed to a denormalized) number isn't it? Or i