Windows 8.1 x64 i7-4930K @ 3.40GHz
The C macro isfinite() returns whether X is a finite value.
A finite value is any floating point value that is neither
infinite nor NaN (Not a Number).
The type of X shall be float, double or long double. A non
zero value (true) if X is finite; and zero (false) otherwise.
Here are some examples:
isfinite(0.0) = 1
isfinite(1.0/0.0) = 0
isfinite(-2.0/0.0) = 0
isfinite(sqrt(-4.0)) = 0
Please, press enter to continue...
The different checks may take a while.
Checking the REAL4 number 3.141593:
It's a finite floating point value.
C-version Assembly Language
--------- -----------------
Time 5.42 s 2.53 s
Please, press enter to continue...
Checking the REAL8 number 3.141592653589793:
It's a finite floating point value.
C-version Assembly Language
--------- -----------------
Time 5.72 s 2.23 s
Please, press enter to continue...