Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!news.kreonet.re.kr!news.dacom.co.kr!nntp.coast.net!fu-berlin.de!lislip.physik.fu-berlin.DE!not-for-mail From: graichen@mail.physik.fu-berlin.de (Thomas Graichen) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Update for FreeBSD math libraries? Date: 8 Mar 1996 19:20:37 GMT Organization: his FreeBSD box :-) Lines: 20 Message-ID: <4hq1a5$1s9@mordillo.physik.fu-berlin.de> References: <4hlpi0$n3p@cronkite.seas.gwu.edu> NNTP-Posting-Host: lislip.physik.fu-berlin.de (130.133.3.126) X-Access: 16 17 18 X-Newsreader: TIN [version 1.2 PL2] Brad Stubbs (bstubbs@felix.seas.gwu.edu) wrote: : Is an update to the FreeBSD math libraries planned anytime soon. I've : got a number of programs originally written for SunOS 4.1.3 that generate : floating point errors and core dump. I can compile and run them on a : Linux box by using -lieee (which doesn't really do anything except set : the math co-processor control word to 0x137f). I've looked at fpsetmask() : and friends but these don't seem to deal with the high 4 bits (I think I : need to set bit #12). Can anyone help me out? simply set the math co-processor control word to 0x137f in /usr/include/machine/npx.h and recompile your kernel - then you have the behavior you want - maybe this helps you t -- thomas graichen graichen@mail.physik.fu-berlin.de graichen@FreeBSD.org perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away antoine de saint-exupery