Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2001 04:30:03 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/28966: math libraries in linux emulation do not return same results
Message-ID:  <200107151130.f6FBU3O23474@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/28966; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/28966: math libraries in linux emulation do not return same
 results
Date: Sun, 15 Jul 2001 21:19:42 +1000 (EST)

 On Sat, 14 Jul 2001, Jim Pirzyk wrote:
 
 >  On Saturday 14 July 2001 03:18 pm, David Malone wrote:
 >  > Did you try playing with fpgetround/fpsetround or any of the related
 >  > functions on the same man page? I'd suspect you could find out what's
 >  > going on with them.
 >  
 >  I just tried them and I see the FreeBSD box is set to 53 bit precision,
 >  but the problem is that these functions do not exist on Linux.  This
 
 Some form of them should exist.  They are spelled fegetround/fesetround
 in C99.
 
 >  means I cannot compile the program to test what the precision is
 >  under linux emulation.  The problem I have is that the linux binaries
 >  running under freebsd gives a different result that the freebsd binary
 >  or the linux binary under linux.
 
 It is probably a bug for changing the rounding mode via a standard
 interface to have any effect on the result of a math function, but in
 practice I think you can rely on f[ep]setround() fixing them if it is
 used to "restore" the correct default.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107151130.f6FBU3O23474>