Re: A questions about NaN and Infinity in GCC

2005-09-05 Thread Michael Veksler
Yao Qi wrote on 06/09/2005 08:48:16: > I am work on a floating points test according to IEEE754 and IEEE754 specifies > that seven invalid arithmetic operations shall deliver a NaN unless they are > trapped: > sqrt(Negative), 0*Infinity, 0.0/0.0, Infinity/Infinity, REMAINDER(Anything,0.0), > R

A questions about NaN and Infinity in GCC

2005-09-05 Thread Yao Qi
I am work on a floating points test according to IEEE754 and IEEE754 specifies that seven invalid arithmetic operations shall deliver a NaN unless they are trapped: sqrt(Negative), 0*Infinity, 0.0/0.0, Infinity/Infinity, REMAINDER(Anything,0.0), REMAINDER(Infinity, Anything), Infinity - Infinity.