I have a huge project (not built by me) that is allowed to have Infinity and NaN values. Although it's allowed, it is not desirable. I read that these values are generated by these kind of operations:
1/0 = ∞
log (0) = -∞
sqrt (-1) = NaN
and, beside this, when they're reached, a FP Exception should be thrown.
If my project allows having operations with NaN and Infinity, I thought that SIGFPE would be handled somewhere, but I searched in the entire project and could not find it.
Is there another way to disable this exception? My goal is to be able to detect the first occurrence of these kind of values.
EDIT: I'm using Windows and I intend to enable the signal, but before I enable, I'd like to understand if it got disabled.