Success! Subscription added.
Success! Subscription removed.
Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your
On Mac OS X 10.10.5 using Intel compiler version 16.0.0 the functions __builtin_isnan, __builtin_isinf, and __bultin_isfinite are not implemented correctly.
Here is a minimal test-case against the Intel compiler:
int main(int argc, char const * argv)
<< std::isnan(0.0/0.0) << " " << __builtin_isnan(0.0/0.0) << "\n"
<< std::isinf(1.0/0.0) << " " << __builtin_isinf(1.0/0.0) << "\n"
<< std::isfinite(1.0/0.0) << " " << __builtin_isfinite(1.0/0.0) << "\n";
which when compiled with icpc -fp-model strict test.cpp -o test prints
icpc -fp-model strict test.cpp -o test
Thanks for bringing this up. I'll file this issue with our developers and will keep you updated. Appreciate your patience till then.
For more complete information about compiler optimizations, see our Optimization Notice.