How to multiply two ints and check
Chris Torek
chris at mimsy.UUCP
Sat May 20 15:36:06 AEST 1989
In article <4700038 at m.cs.uiuc.edu> robison at m.cs.uiuc.edu writes:
>There is a much simpler, faster, and machine-independent way to check
>for multiplication overflow --- check the product by division.
Alas, by then it is too late: your program has crashed. (Not on a
VAX, nor on a Sun nor a Tahoe nor Encore, but on some machines, yes.)
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list