www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - signaling NaNs and quiet NaNs

reply dennis luehring <dl.soluz gmx.net> writes:
on http://en.wikipedia.org/wiki/IEEE_754 they talk about

quiet and singnaling NaNs - which of these supports D and how?

do i get an execption when a signaling NaN occure?

ciao dennis
Sep 01 2008
parent reply Paul D. Anderson <paul.d.removethis.anderson comcast.andthis.net> writes:
dennis luehring Wrote:

 on http://en.wikipedia.org/wiki/IEEE_754 they talk about
 
 quiet and singnaling NaNs - which of these supports D and how?
 
 do i get an execption when a signaling NaN occure?
 
 ciao dennis

Walter can give the definitive answer but I'm pretty sure that (at the moment) D does not use signaling NaNs. That is, any signaling NaNs that occur are only visible as quiet NaNs, and therefore, no exceptions are thrown.
Sep 01 2008
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Paul D. Anderson wrote:
 dennis luehring Wrote:
 
 on http://en.wikipedia.org/wiki/IEEE_754 they talk about
 
 quiet and singnaling NaNs - which of these supports D and how?
 
 do i get an execption when a signaling NaN occure?
 
 ciao dennis

Walter can give the definitive answer but I'm pretty sure that (at the moment) D does not use signaling NaNs. That is, any signaling NaNs that occur are only visible as quiet NaNs, and therefore, no exceptions are thrown.

Signaling NaNs have fallen out of favor. No exceptions get raised for them.
Sep 01 2008
parent reply dennis luehring <dl.soluz gmx.net> writes:
Walter Bright schrieb:
 Paul D. Anderson wrote:
 dennis luehring Wrote:
 
 on http://en.wikipedia.org/wiki/IEEE_754 they talk about
 
 quiet and singnaling NaNs - which of these supports D and how?
 
 do i get an execption when a signaling NaN occure?
 
 ciao dennis

Walter can give the definitive answer but I'm pretty sure that (at the moment) D does not use signaling NaNs. That is, any signaling NaNs that occur are only visible as quiet NaNs, and therefore, no exceptions are thrown.

Signaling NaNs have fallen out of favor. No exceptions get raised for them.

a signaling NaN becomes then just a quiet NaN (as Paul D. Anderson said) - no different behaviour? ciao dennis
Sep 01 2008
parent Walter Bright <newshound1 digitalmars.com> writes:
dennis luehring wrote:
 Walter Bright schrieb:
 Paul D. Anderson wrote:
 dennis luehring Wrote:

 on http://en.wikipedia.org/wiki/IEEE_754 they talk about

 quiet and singnaling NaNs - which of these supports D and how?

 do i get an execption when a signaling NaN occure?

 ciao dennis

Walter can give the definitive answer but I'm pretty sure that (at the moment) D does not use signaling NaNs. That is, any signaling NaNs that occur are only visible as quiet NaNs, and therefore, no exceptions are thrown.

Signaling NaNs have fallen out of favor. No exceptions get raised for them.

a signaling NaN becomes then just a quiet NaN (as Paul D. Anderson said) - no different behaviour?

None other than what the CPU does. D treats the two as the same.
Sep 02 2008