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