*BSD News Article 9332


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5586 ; Fri, 01 Jan 93 01:49:59 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!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 21:59:41 GMT
Organization: /etc/organization
Lines: 23
Distribution: world
Message-ID: <1hl90dINNjsh@life.ai.mit.edu>
References: <1hklblINN7rb@life.ai.mit.edu>
NNTP-Posting-Host: hal.gnu.ai.mit.edu


In article <1hklblINN7rb@life.ai.mit.edu> mycroft@hal.gnu.ai.mit.edu
(Charles Hannum) writes:
>
> ldexp() is such a trivial function that I don't know why it wasn't
> just coded in assembly language.

With foot halfway in mouth, I point out that I missed a trivial
optimization:

#include	"DEFS.h"

ENTRY(ldexp)
	fildl	12(%esp)
	fldl	4(%esp)
	fscale
	fstp	%st(1)
	ret

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!