[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message