Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA5578 ; Fri, 01 Jan 93 01:49:38 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!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!