Article View: comp.std.c
Article #4619Re: Undefined result vs. int's holding undefined values.
From: Dave Berry
Date: Fri, 12 Jan 1996 10:14
Date: Fri, 12 Jan 1996 10:14
19 lines
1126 bytes
1126 bytes
baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes) writes: >Daniel Wood (dwood@informix.com) wrote: >: Do any machines exist which actually explode when you add two number together >: such that the result would exceed MAXINT? :-) Get practical! > >VAXes >If you set the apropriate bit in the process status word then integer overflow >causes a trap. The SPARC and MIPS processors also have integer instructions that trap on overflow. Dave. -- One more touch and then you'll see Harlequin Ltd., Worlds of hidden mystery, Barrington Hall, Visions of beyond recall. Barrington, (You know you're only dreaming). Cambridge, UK.
Technical Details
Message-ID:
<DL2CFs.FG0@harlequin.co.uk>Path:
arc1-ca.pugleaf.net!harlequin.co.uk!davebReferences:
<4ck70b$rd7@news.informix.com> <oZA8wQ9ytpjN084yn@csn.net> <4cs460$d6e@news.informix.com> <DKyIx1.1qr@ukpsshp1.serigate.philips.nl>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!harlequin.co.uk!daveb From: daveb@harlqn.co.uk (Dave Berry) Subject: Re: Undefined result vs. int's holding undefined values. Message-ID: <DL2CFs.FG0@harlequin.co.uk> Sender: usenet@harlequin.co.uk (Usenet Maintainer) Organization: Harlequin Ltd. References: <4ck70b$rd7@news.informix.com> <oZA8wQ9ytpjN084yn@csn.net> <4cs460$d6e@news.informix.com> <DKyIx1.1qr@ukpsshp1.serigate.philips.nl> Date: Fri, 12 Jan 1996 10:14:16 GMT