From owner-freebsd-hackers Sat Jul 14 11:29:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from femail13.sdc1.sfba.home.com (femail13.sdc1.sfba.home.com [24.0.95.140]) by hub.freebsd.org (Postfix) with ESMTP id 9AB4E37B405 for ; Sat, 14 Jul 2001 11:29:36 -0700 (PDT) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu ([24.12.197.197]) by femail13.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010714182935.BXAW27910.femail13.sdc1.sfba.home.com@math.missouri.edu>; Sat, 14 Jul 2001 11:29:35 -0700 Message-ID: <3B508F8F.1AB674C6@math.missouri.edu> Date: Sat, 14 Jul 2001 13:29:35 -0500 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: jmcoopr@webmail.bmi.net Cc: Jim.Pirzyk@disney.com, freebsd-hackers@FreeBSD.ORG Subject: Re: math library difference between linux emulation and native freebsd (and native linux) References: <200107141819.LAA06370@smtp.bmi.net> 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 jmcoopr@webmail.bmi.net wrote: > > In <200107141809.f6EI9M809946@snoopy.fan.fa.disney.com>, on 07/14/2001 > at 11:09 AM, Jim.Pirzyk@disney.com said: > > >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 > > > My guess is difference between Linux emulation and "native" 's floating > point formatting for printf. With the number of significant digits > you're invoking, small differences in handling low order bits can be > significant. > You could check this out by trying the following double x,y; x = 53.278500; y = exp(x); for(i=0;i