Messages in this thread | | | Date | Fri, 20 Nov 1998 08:45:28 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | 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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |