*BSD News Article 1829


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!news.hawaii.edu!ames!tulane!ukma!risner
From: risner@ms.uky.edu (James Risner)
Subject: Re: libm.a for i387
Keywords: libm.a
References: <139be6INN3jj@disaster.Germany.EU.net>
Message-ID: <1992Jul6.141522.26929@ms.uky.edu>
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Mon, 6 Jul 1992 18:15:22 GMT
Lines: 32

bs@Germany.EU.net (Bernard Steiner) writes:

>Hi there,

>Has anybody out there in net.land got a version of libm specifically
>designed for i387 ?

>The one that comes with 386bsd seems to use double +-*/, bit manipulations
>and integer arithmetic only.
>Okay, I'll admit I started on a libm/i387 - but
>a) I don't want to re-invent the wheel
>b) I don't know when to let the routines cause a FPE signal or when to set
>   errno (and to what)

I had a lot of trouble with log(), exp(), floor(), and ceil() in the dist
libm.a so I got glenn geers  libm replacement for i387 chips and the problems
went away...  I have not had a chance to poke around and find out why the
libm.a functions were failing.

mathlib i387:
glenn@qed.physics.su.oz.au.
Glenn Geers
Department of Theoretical Physics
The University of Sydney
Sydney NSW 2006 Australia
Ph: +61 2 692-3241

Ported to 386bsd gcc/gas:
f.ms.uky.edu:/pub2/386BSD/local/mathlib-2.1-386bsd.tar.Z
Includes libm replacement, diffs, sources, mathlib tester.

Risner