From owner-svn-src-all@FreeBSD.ORG Mon Dec 6 00:02:49 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C107B1065674; Mon, 6 Dec 2010 00:02:49 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AF82D8FC0A; Mon, 6 Dec 2010 00:02:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB602n68013765; Mon, 6 Dec 2010 00:02:49 GMT (envelope-from das@svn.freebsd.org) Received: (from das@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB602nmC013758; Mon, 6 Dec 2010 00:02:49 GMT (envelope-from das@svn.freebsd.org) Message-Id: <201012060002.oB602nmC013758@svn.freebsd.org> From: David Schultz Date: Mon, 6 Dec 2010 00:02:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216222 - head/tools/regression/lib/msun X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 00:02:49 -0000 Author: das Date: Mon Dec 6 00:02:49 2010 New Revision: 216222 URL: http://svn.freebsd.org/changeset/base/216222 Log: signbit() returns nonzero for negative arguments, but we shouldn't assume that it always returns the same nonzero value. Modified: head/tools/regression/lib/msun/test-exponential.c head/tools/regression/lib/msun/test-fma.c head/tools/regression/lib/msun/test-fmaxmin.c head/tools/regression/lib/msun/test-invtrig.c head/tools/regression/lib/msun/test-logarithm.c head/tools/regression/lib/msun/test-trig.c Modified: head/tools/regression/lib/msun/test-exponential.c ============================================================================== --- head/tools/regression/lib/msun/test-exponential.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-exponential.c Mon Dec 6 00:02:49 2010 (r216222) @@ -89,7 +89,7 @@ __FBSDID("$FreeBSD$"); int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || isnan(x) && isnan(y)); + return ((x == y && !signbit(x) == !signbit(y)) || isnan(x) && isnan(y)); } void Modified: head/tools/regression/lib/msun/test-fma.c ============================================================================== --- head/tools/regression/lib/msun/test-fma.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-fma.c Mon Dec 6 00:02:49 2010 (r216222) @@ -85,7 +85,8 @@ int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || (isnan(x) && isnan(y))); + return ((x == y && !signbit(x) == !signbit(y)) + || (isnan(x) && isnan(y))); } static void Modified: head/tools/regression/lib/msun/test-fmaxmin.c ============================================================================== --- head/tools/regression/lib/msun/test-fmaxmin.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-fmaxmin.c Mon Dec 6 00:02:49 2010 (r216222) @@ -50,7 +50,8 @@ static inline int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || (isnan(x) && isnan(y))); + return ((x == y && !signbit(x) == !signbit(y)) + || (isnan(x) && isnan(y))); } /* Modified: head/tools/regression/lib/msun/test-invtrig.c ============================================================================== --- head/tools/regression/lib/msun/test-invtrig.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-invtrig.c Mon Dec 6 00:02:49 2010 (r216222) @@ -118,7 +118,7 @@ fpequal(long double x, long double y, lo if (isnan(x) && isnan(y)) return (1); - if (signbit(x) != signbit(y)) + if (!signbit(x) != !signbit(y)) return (0); if (x == y) return (1); Modified: head/tools/regression/lib/msun/test-logarithm.c ============================================================================== --- head/tools/regression/lib/msun/test-logarithm.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-logarithm.c Mon Dec 6 00:02:49 2010 (r216222) @@ -90,7 +90,7 @@ __FBSDID("$FreeBSD$"); int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || isnan(x) && isnan(y)); + return ((x == y && !signbit(x) == !signbit(y)) || isnan(x) && isnan(y)); } void Modified: head/tools/regression/lib/msun/test-trig.c ============================================================================== --- head/tools/regression/lib/msun/test-trig.c Sun Dec 5 23:50:49 2010 (r216221) +++ head/tools/regression/lib/msun/test-trig.c Mon Dec 6 00:02:49 2010 (r216222) @@ -90,7 +90,7 @@ __FBSDID("$FreeBSD$"); int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || isnan(x) && isnan(y)); + return ((x == y && !signbit(x) == !signbit(y)) || isnan(x) && isnan(y)); } /*