home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / misc / 6411 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!appserv.Eng.Sun.COM!appserv!khb
  2. From: khb@chiba.Eng.Sun.COM (Keith Bierman-khb@chiba.eng.sun.com::SunPro)
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: Re: Quick arithmetic exception warning question
  5. Date: 21 Jan 93 12:15:41
  6. Organization: SunPro
  7. Lines: 36
  8. Distribution: world
  9. Message-ID: <KHB.93Jan21121541@chiba.Eng.Sun.COM>
  10. References: <jeffb.727565349@aquifer.geology.uiuc.edu>
  11. NNTP-Posting-Host: chiba
  12. In-reply-to: jeffb@aquifer.geology.uiuc.edu's message of 20 Jan 93 21:29:09 GMT
  13.  
  14.  
  15. In article <jeffb.727565349@aquifer.geology.uiuc.edu> jeffb@aquifer.geology.uiuc.edu (Jeffrey Biesiadecki) writes:
  16.  
  17. ...  we have, but didn't find the answer.  ieee_flags() works to clear..
  18.    before exit points, but it would be much better to just turn off the trapping
  19.  
  20. There is no trapping occuring. It is common to confuse the
  21. *retrospective* ("foo has occured") with trapping ("foo is occuring, now
  22. what do I do?"). You may wish to reread Chapter 5 of the Numerical
  23. Computation Guide.
  24.  
  25. As you suggest, turning off the flags will eliminate the message (this
  26. is, in fact, mentioned on page 99 of the NCG as the socially approved
  27. way to turn off the message). 
  28.  
  29. Another approach is to replace the ieee_retrospective routine with one
  30. of your own; e.g.
  31.  
  32.     subroutine ieee_retrospective()
  33.     return
  34.     end
  35.  
  36. will do nicely. 
  37.  
  38. However, whichever approach you select, you are losing potentially
  39. useful information and gaining *no* computational performance (you do
  40. save a couple of printf's at the end of your run, of course).
  41.  
  42. cheers
  43.  
  44. --
  45. ----------------------------------------------------------------
  46. Keith H. Bierman    keith.bierman@Sun.COM| khb@chiba.Eng.Sun.COM
  47. SunPro 2550 Garcia MTV 12-40             | (415 336 2648) fax 964 0946
  48. Mountain View, CA 94043  <speaking for myself, not Sun*> Copyright 1993
  49.  
  50.