From owner-freebsd-bugs Sun Jul 15 4:30: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8EF7237B405 for ; Sun, 15 Jul 2001 04:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6FBU3O23474; Sun, 15 Jul 2001 04:30:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 15 Jul 2001 04:30:03 -0700 (PDT) Message-Id: <200107151130.f6FBU3O23474@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/28966: math libraries in linux emulation do not return same results Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/28966; it has been noted by GNATS. From: Bruce Evans To: Jim Pirzyk 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