home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10609 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.3 KB

  1. Path: sparky!uunet!mcsun!fuug!news.funet.fi!hydra!klaava!torvalds
  2. From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: gcc 2.2.2 math lib bug???
  5. Keywords: weirdness
  6. Message-ID: <1992Sep13.175040.24459@klaava.Helsinki.FI>
  7. Date: 13 Sep 92 17:50:40 GMT
  8. References: <1992Sep13.161713.8191@monu6.cc.monash.edu.au>
  9. Organization: University of Helsinki
  10. Lines: 17
  11.  
  12. In article <1992Sep13.161713.8191@monu6.cc.monash.edu.au> int177c@aurora.cc.monash.edu.au (Jae Won) writes:
  13. >
  14. >    I found a weidness in gcc2.2.2d. It may be my silly code but I tested
  15. >the code with gcc compiler at uni(gcc...not sure of the version) and it worked
  16. >fine...well, like what I expected. The code is a edited fragment of a code 
  17. >I am writing to do a monte carlo stuff. I use exp() function.
  18.  
  19. It's more likely to be a problem with the 387-emulator: the emulator
  20. does *not* handle under/over-flows gracefully in its current form.  The
  21. fix is either to get a real 387, check for underflows by hand, or fix
  22. the emulator.  Fixing the emulator is obviously the optimal solution,
  23. but it takes some doing, and nobody seems interested (most people,
  24. including me, seem to have a 387).  The fact that the emulator works
  25. "well enough" for most things makes it a pretty boring project, so
  26. nobody has done anything about it. 
  27.  
  28.         Linus
  29.