SIGFPE signal problem

John Campbell jdc at naucse.UUCP
Tue Mar 20 02:15:31 AEST 1990


>From article <5450 at rouge.usl.edu>, by pcb at gator.cacs.usl.edu (Peter C. Bahrs):
: I am trying to detect overflow, 0 divide and, although it may seem
: unlikely, underflow.  Doesn't SIGFPE detect this?  If so, why doesn't
: the following SMALL code work? 
: 
: Why and how in the heck can vendors not provide for underflow detection?
: I am working on SUN 3,4 and Val 11780.
: 
I have at least one example on my ATT3b1 of computing IEEE Inf and not
causing a SIGFPE until the next operation on this value.  My "solution"
was to do some special checking near the computation as well as arming
SIGFPE.  

I'd be interested in hearing a discussion here from others who know more
than I about how this can happen.  Like Peter, I wonder "...can vendors
not provide for " dependable SIGFPE?

-- 
	John Campbell               ...!arizona!naucse!jdc
                                    CAMPBELL at NAUVAX.bitnet
	unix?  Sure send me a dozen, all different colors.



More information about the Comp.lang.c mailing list