[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: have a look at this proggie, please.
>
> Output:
>
> -2147483648 * -1 = -2147483648
> Floating exception
> ^^^^^^^^^^^^^^^^^^
>
> Quite obviously, -MAXINT-1 * -1 is too large for an integer to hold (by
> one), but it should *NOT* report a floating exception... Right?!
>
Yes but.... What signal should it generate? You need some trap because
once math is invalid, you really don't want to continue. There isn't
a SIGINTEGEROVERFLOW!
Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.128 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxxx
Please read the FAQ at http://www.tux.org/lkml/
This mailing list archive is a service of Copilotco.