Date: Sat, 14 Jul 2001 11:47:41 -0700 From: Jim Pirzyk <Jim.Pirzyk@disney.com> To: freebsd-hackers@freebsd.org Subject: Re: math library difference between linux emulation and native freebsd (and native linux) Message-ID: <iss.6024.3b5093cb.a560b.1@mercury.fan.fa.disney.com> In-Reply-To: <20010714111910.A17666@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, July 14, 2001, at 11:19 AM, David O'Brien wrote: > On Sat, Jul 14, 2001 at 11:09:22AM -0700, 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. > ... >> Running natively under Linux: >> >> x = 53.278500 >> exp(x) = 137581029243568449912832.000000 > > Which version of Linux from which distributor? Can you check that you > have the same libs on the Linux box as we use in > /usr/ports/emulators/linux_base? One interesting point I found is if I include the exp() code into the program directly and do not use -O<whatever>, it runs correctly. So the problem seems to be the optimization that was done with -O on libm, but only under the emulator. - JimP 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?iss.6024.3b5093cb.a560b.1>