home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10653 < prev    next >
Encoding:
Text File  |  1992-12-27  |  911 b   |  32 lines

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!think.com!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft
  2. From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: [386BSD] GCC 2.3.2 floating point problems
  5. Date: 27 Dec 1992 16:24:21 GMT
  6. Organization: MIT Artificial Intelligence Lab
  7. Lines: 20
  8. Distribution: world
  9. Message-ID: <1hklblINN7rb@life.ai.mit.edu>
  10. NNTP-Posting-Host: hal.gnu.ai.mit.edu
  11.  
  12.  
  13. ldexp() is such a trivial function that I don't know why it wasn't just
  14. coded in assembly language.  This version appears to work, and avoids
  15. the bug in GCC 2.3.3 which I mentioned previously.
  16.  
  17.  
  18. #include    "DEFS.h"
  19.  
  20. ENTRY(ldexp)
  21.     fildl    12(%esp)
  22.     fldl    4(%esp)
  23.     fscale
  24.     fxch    %st(1)
  25.     fstp    %st(0)
  26.     ret
  27.  
  28. -- 
  29.  \  /   Charles Hannum, mycroft@ai.mit.edu
  30.  /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
  31. Scheme  White heterosexual atheist male (WHAM) pride!
  32.