From owner-freebsd-hackers Mon Jul 16 8:52:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id 4496337B403 for ; Mon, 16 Jul 2001 08:52:19 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.130.87.Dial1.SanJose1.Level3.net [209.245.130.87]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id IAA04892; Mon, 16 Jul 2001 08:52:17 -0700 (PDT) Message-ID: <3B530DD6.E3604F32@mindspring.com> Date: Mon, 16 Jul 2001 08:52:54 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Jim.Pirzyk@disney.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: math library difference between linux emulation and native freebsd (and native linux) References: <200107141809.f6EI9M809946@snoopy.fan.fa.disney.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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