NaNs Just Don't Get No Respect

Don Clugston dac at nospam.com
Tue Aug 21 07:46:11 PDT 2012


On 21/08/12 16:14, renoX wrote:
> On Tuesday, 21 August 2012 at 12:25:45 UTC, Chad J wrote:
>> On 08/20/2012 11:09 AM, Andrej Mitrovic wrote:
>>> On 8/20/12, Walter Bright<newshound2 at digitalmars.com>  wrote:
>>>> On 8/19/2012 6:33 PM, Chad J wrote:
>>>>> How?  I remember reading a lot of material on NaNs in D, but I don't
>>>>> recall these.
>>>>
>>>> Set the control word for the x87 to turn it on. Probably have to do
>>>> a little
>>>>
>>>> inline assembly.
>>>>
>>>
>>> I thought you could do by setting FloatingPointControl in std.math.
>>
>> That looks much more convenient and clean.
>>
>> Gotta make the right thing easy to do, right? <g>
>
> Except that it doesn't seem to work as expected (maybe an old compiler's
> bug..)

Yeah, there's a bug in the code generation, at the moment for 80-bit 
reals it works on AMD but not Intel processors (!)



More information about the Digitalmars-d-announce mailing list