bad floating point exception

Chris Jones jonesc at hep.phy.cam.ac.uk
Fri Jul 27 23:18:26 UTC 2007


On Friday 27 July 2007 11:42:57 pm Mike - EMAIL IGNORED wrote:
> On Fri, 27 Jul 2007 22:27:58 +0100, Chris Jones wrote:
> >> But it is not a floating point operation, they
> >> are unsigned integers.  At least on older systems
> >> that I am familiar with, it is different hardware.
> >
> > what exactly are you expecting from x%y when y=0 ??
>
> On other systems, more consistent with current
> terminology, I have seen and can imagine:
>    arithmetic exception (good but vague)
>    fixed point exception (better)
>    integer div zero (best)
>
> Anything referring to floating point is simply wrong
> (and suggests a basic lack of understanding on the
> part of the author).

Ok, I get your point now ;)

As someone has already pointed this is actually always returned as a SIGFPE 
floating point exception, at least it has been for systems I've used...

Chris




More information about the fedora-list mailing list