home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11313 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.6 KB

  1. 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
  2. From: sdl@adagio.austin.ibm.com (sdl)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: Divide by Zero trapping
  5. Message-ID: <SDL.92Nov5091744@adagio.austin.ibm.com>
  6. Date: 5 Nov 92 14:17:44 GMT
  7. References: <1992Nov3.183201.16550@versyss.com>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Reply-To: sdl@austin.ibm.com
  10. Organization: AIX Base System Kernel Development
  11. Lines: 22
  12. In-Reply-To: keithd@versyss.com's message of Tue, 3 Nov 1992 18:32:01 GMT
  13.  
  14. >>>>> keithd@versyss.com (Keith Doyle) writes:
  15.  
  16. In article <1992Nov3.183201.16550@versyss.com> keithd@versyss.com (Keith Doyle) writes:
  17.  
  18. > I discovered that AIX does not automatically trap divide by zero.  My
  19. > first reaction was to proclaim it a bug and post the news here, but
  20. > I figured I should read InfoExplorer first to find out if there is
  21. > any information about it.  I did a search for "divide by zero" and
  22. > found a sample program that is supposed to trap such things under
  23. > XL C Floating-Point Options.  However, I can't make it work.  Here
  24. > is my test program:
  25.  
  26. [Test program deleted]
  27.  
  28. Your test program does an integer division.  The flttrap option will
  29. detect floating-point divison by zero.  As far as I know there is no
  30. option to detect integer division by zero in C.
  31. --
  32. --------------------------------------------------------------------
  33. Stephen Linam   AWSD Austin  T/L: 678-3308  Bell-net: (512) 838-3308
  34. sdl@austin.ibm.com                         IBM VNET: LINAM at AUSTIN
  35. Quae narravi, nullo modo negabo.               I don't speak for IBM
  36.