Date: Mon, 16 Jul 2001 08:52:54 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Jim.Pirzyk@disney.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: math library difference between linux emulation and native freebsd (and native linux) Message-ID: <3B530DD6.E3604F32@mindspring.com> References: <200107141809.f6EI9M809946@snoopy.fan.fa.disney.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jim.Pirzyk@disney.com wrote: > > So I have stumbled across a linux emulation bug in freebsd. Below > is the program that returns different results based on FreeBSD, > Linux or Linux emulation under FreeBSD. [ ... ] > There are only two shared libaries in common (libc and libm) and > both are the same on FreeBSD (in /compat/linux) and Linux. > > So any ideas on where the program is going wrong? man fpsetround The defaults for the Linux emulator are different than the defaults for Linux. Linux sets some stuff up wrong, and then assumes that it's set up wrong. If you want to get exactly the same answers as for Linux, you will need to set the hardware up the same. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B530DD6.E3604F32>