Floating point exception handling

Jugoslav Dujic
Total Points:
6,542
Status Points:
6,542
Black Belt
May 9, 2008 1:06 AM PDT
Rate
 
#4 Reply to #3
MADsblionel:
That setting primarly drives code in a Fortran main program that calls a routine called FOR_SET_FPE to set the FPCW. It doesn't do this for a DLL. 

So, I have been under false impression that this setting actually affects the generated machine code? Driven by that impression, I wandered quite a bit how to reliably get the desired behavior (the same as John wanted). Now that you said it, it makes much more sense that way...

So, basically the only way to regulate exceptions is through FPCW, right?

Slightly off-topic, Steve, is my observation correct that math intrinsics now (as opposed to CVF) behave according to FPCW setting? For example, LOG(0) or SQRT(negative) now generate "Invalid FP operation" exception with appropriate FPCW flag cleared, rather than displaying arcane message box or terminate (thus MATHERRQQ is now deservingly retired).

--------
Jugoslav
www.xeffort.com


Intel Software Network Forums Statistics

8458 users have contributed to 31572 threads and 100535 posts to date.
In the past 24 hours, we have 18 new thread(s) 131 new posts(s), and 154 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Quoting - rase if (k.eq.0

Please welcome our newest member soundmyth