NaNs Just Don't Get No Respect

renoX renozyx at gmail.com
Tue Aug 21 07:14:06 PDT 2012


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..)

RenoX


>
> How thread-local is it?




More information about the Digitalmars-d-announce mailing list