From owner-cvs-src@FreeBSD.ORG Thu Apr 3 06:14:52 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15C4D1065673; Thu, 3 Apr 2008 06:14:52 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E4C0D8FC28; Thu, 3 Apr 2008 06:14:51 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m336EpHq027506; Thu, 3 Apr 2008 06:14:51 GMT (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m336EpMS027505; Thu, 3 Apr 2008 06:14:51 GMT (envelope-from das) Message-Id: <200804030614.m336EpMS027505@repoman.freebsd.org> From: David Schultz Date: Thu, 3 Apr 2008 06:14:51 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/msun/src s_fma.c s_fmal.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 06:14:52 -0000 das 2008-04-03 06:14:51 UTC FreeBSD src repository Modified files: lib/msun/src s_fma.c s_fmal.c Log: Fix some corner cases: - fma(x, y, z) returns z, not NaN, if z is infinite, x and y are finite, x*y overflows, and x*y and z have opposite signs. - fma(x, y, z) doesn't generate an overflow, underflow, or inexact exception if z is NaN or infinite, as per IEEE 754R. - If the rounding mode is set to FE_DOWNWARD, fma(1.0, 0.0, -0.0) is -0.0, not +0.0. Revision Changes Path 1.5 +10 -5 src/lib/msun/src/s_fma.c 1.4 +10 -5 src/lib/msun/src/s_fmal.c