Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: How to multiply two ints and check Message-ID: <17636@mimsy.UUCP> Date: 20 May 89 05:36:06 GMT References: <434@skye.ed.ac.uk> <4700038@m.cs.uiuc.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 9 In article <4700038@m.cs.uiuc.edu> robison@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@mimsy.umd.edu Path: uunet!mimsy!chris