This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I want my FPE!


Mark Geisert writes:
> I've tried many things [...]

...but I neglected the possibility of compiler expression optimization.  I
replaced "1E200L * 1E200L" with "d * d" where d is initialized with 1E200L. 
Voila, SIGFPE results and is trapped the way I wanted to.

I'm still looking for a way to similarly handle integer overflow exceptions.
Thanks,

..mark



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]