home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!awdprime.austin.ibm.com!sdl
- From: sdl@adagio.austin.ibm.com (sdl)
- Newsgroups: comp.unix.aix
- Subject: Re: Divide by Zero trapping
- Message-ID: <SDL.92Nov5091744@adagio.austin.ibm.com>
- Date: 5 Nov 92 14:17:44 GMT
- References: <1992Nov3.183201.16550@versyss.com>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Reply-To: sdl@austin.ibm.com
- Organization: AIX Base System Kernel Development
- Lines: 22
- In-Reply-To: keithd@versyss.com's message of Tue, 3 Nov 1992 18:32:01 GMT
-
- >>>>> keithd@versyss.com (Keith Doyle) writes:
-
- In article <1992Nov3.183201.16550@versyss.com> keithd@versyss.com (Keith Doyle) writes:
-
- > I discovered that AIX does not automatically trap divide by zero. My
- > first reaction was to proclaim it a bug and post the news here, but
- > I figured I should read InfoExplorer first to find out if there is
- > any information about it. I did a search for "divide by zero" and
- > found a sample program that is supposed to trap such things under
- > XL C Floating-Point Options. However, I can't make it work. Here
- > is my test program:
-
- [Test program deleted]
-
- Your test program does an integer division. The flttrap option will
- detect floating-point divison by zero. As far as I know there is no
- option to detect integer division by zero in C.
- --
- --------------------------------------------------------------------
- Stephen Linam AWSD Austin T/L: 678-3308 Bell-net: (512) 838-3308
- sdl@austin.ibm.com IBM VNET: LINAM at AUSTIN
- Quae narravi, nullo modo negabo. I don't speak for IBM
-