tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: standards on SIGFPE for divide by zero?



  My question is:  what do the relevant standards say about this?  Is it
  required to SIGFPE?  If it's required, I'll file a PR against
  port-powerpc and mark the tests expected-fail on ppc.  If not, then
  I'll skip them on ppc.

I dimly recall that it's required to be able to set this mode, but that
it doesn't have to be the default.  I think this is controlled by
IEEE754, but note that vax is different.

See fpgetmask(3).  Maybe the test should set FP_X_DZ.

Regardless of standards, it's probably good for NetBSD to be consistent
across ports on default fp behavior.


Attachment: pgp_9NW690XnU.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index