Subject: Re: SIGFPE?
To: Robert Elz <kre@munnari.OZ.AU>
From: Johnny Billquist <bqt@update.uu.se>
List: netbsd-help
Date: 05/02/2001 14:34:18
On Wed, 2 May 2001, Robert Elz wrote:

>   |  (b) Inasmuch as SIGFPE seems to be used, it is applied to integer
>   |      arithmetic, rather than to floating point arithmetic.
> 
> It is used for all arithmetic exceptions.   The name comes form the (kind of
> weird) PDP-11 architecture where integer divisions were done by the floating
> point unit, and hence generated a floating point exception on integer divide
> by 0.

No, the PDP-11 don't do integer divisions in the FPP. (And the PDP-11
architecture definitely isn't wierd...) I'll have to check what trap is
generated by an integer division by zero though.

(While I do know PDP-11s, I don't know why SIGFPE is generated for integer
divisions by 0).

	Johnny

Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt@update.uu.se           ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol