*BSD News Article 19706


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!psgrain!ee.und.ac.za!hippo.ru.ac.za!itu1.sun.ac.za!abs
From: abs@cs.sun.ac.za (Andre Skarzynski)
Newsgroups: comp.os.386bsd.questions
Subject: 386BSD/NetBSD FPU emulator ?
Date: 19 Aug 1993 08:05:40 GMT
Organization: University of Stellenbosch
Lines: 24
Message-ID: <24vc8k$ltr@itu1.sun.ac.za>
NNTP-Posting-Host: itu2.sun.ac.za
X-Newsreader: TIN [version 1.2 PL1]

Hi,

I used to hack 386BSD, but have been away from it for some months now. 
I remember that the Floating Point Unit emulator did not work very well. It
used to give incorrect answers. For example, if I run the following code:

/* test floor */

main()
{
	printf("What do I get? Answer: %f\n",floor(10,9));
}

Using the math emulator I got 10,89something (can't recall exact number, but
it was wrong!)

When I put a copro in (I actually used a 287) I got the expected answer. 
10.000000. Unfortantly I cannot use the 287 with everything.

My question: Has this been fixed? Or is everyone using 486DX's ?

--
Andre B. Skarzynski  -- Information Technology, University of Stellenbosch --
abs@itu1.sun.ac.za   ------ Tel: +27 2231 774293 Fax: +27 2231 774102 -------