From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 3 07:02:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 676BD1065693; Fri, 3 Dec 2010 07:02:04 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C3B18FC13; Fri, 3 Dec 2010 07:02:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oB3724dm017776; Fri, 3 Dec 2010 07:02:04 GMT (envelope-from das@freefall.freebsd.org) Received: (from das@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oB3724qN017772; Fri, 3 Dec 2010 07:02:04 GMT (envelope-from das) Date: Fri, 3 Dec 2010 07:02:04 GMT Message-Id: <201012030702.oB3724qN017772@freefall.freebsd.org> To: abramo.bagnara@gmail.com, das@FreeBSD.org, freebsd-bugs@FreeBSD.org From: das@FreeBSD.org Cc: Subject: Re: kern/133583: [libm] fma(3) does not respect rounding mode using extended precision X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2010 07:02:04 -0000 Synopsis: [libm] fma(3) does not respect rounding mode using extended precision State-Changed-From-To: open->closed State-Changed-By: das State-Changed-When: Fri Dec 3 07:01:28 UTC 2010 State-Changed-Why: Thanks for the report! This limitation is described in the source for fma(), and unfortunately, it is unlikely to ever change. There are several reasons: - We are a long way from having the necessary compiler support to make dynamic precision changes work as expected. - Dynamic FPU precision changes aren't officially supported, and fpsetprec() has been documented as deprecated for many years. - The only supported architecture that can have this problem due to dynamic precision changes is i386, and even then only for non-SSE2 builds. - The cost and complexity associated with making every function in libm detect and adapt to dynamic precision changes is prohibitive. I have updated the manpage for fpsetprec() to explain that changing the FPU precision isn't supported by the compiler or libraries. http://www.freebsd.org/cgi/query-pr.cgi?pr=133583