From owner-freebsd-emulation Fri Jul 13 20:19:25 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id E4CBF37B403 for ; Fri, 13 Jul 2001 20:19:22 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f6E3IaI08923 for ; Fri, 13 Jul 2001 20:18:36 -0700 (PDT) Received: from [172.30.50.1] by pain.corp.disney.com with ESMTP for freebsd-emulation@freebsd.org; Fri, 13 Jul 2001 20:20:16 -0700 Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2]) by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id f6E3JLs16254 for ; Fri, 13 Jul 2001 20:19:21 -0700 (PDT) Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id UAA06178 for ; Fri, 13 Jul 2001 20:19:20 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com for freebsd-emulation@freebsd.org; Fri, 13 Jul 2001 20:19:20 -0700 Content-Type: text/plain; charset="us-ascii" From: Jim Pirzyk Organization: Walt Disney Feature Animation To: freebsd-emulation@freebsd.org Subject: math library difference between linux emulation and native freebsd (and native linux) Date: Fri, 13 Jul 2001 20:19:19 -0700 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01071320191905.28908@snoopy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 FreeBSD: x = 53.27850000 exp(x) = 137581029243568449912832.00000000 Running natively under Linux: x = 53.278500 exp(x) = 137581029243568449912832.000000 Running under FreeBSD in Linux emulation mode: x = 53.27850000 exp(x) = 137581029243567812378624.00000000 #include #include #include int main (int argc, char **argv) { double x = 53.278500; printf ("x = %8lf\n", x); printf ("exp(x) = %8lf\n", exp(x)); exit (0); } 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? - JimP -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message