From owner-svn-src-all@FreeBSD.ORG Thu Jul 11 19:34:16 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CE4658E1; Thu, 11 Jul 2013 19:34:16 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id BFBAB10B7; Thu, 11 Jul 2013 19:34:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6BJYG4S093698; Thu, 11 Jul 2013 19:34:16 GMT (envelope-from theraven@svn.freebsd.org) Received: (from theraven@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6BJYGNv093697; Thu, 11 Jul 2013 19:34:16 GMT (envelope-from theraven@svn.freebsd.org) Message-Id: <201307111934.r6BJYGNv093697@svn.freebsd.org> From: David Chisnall Date: Thu, 11 Jul 2013 19:34:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253219 - head/lib/msun/src X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 11 Jul 2013 19:34:16 -0000 Author: theraven Date: Thu Jul 11 19:34:16 2013 New Revision: 253219 URL: http://svnweb.freebsd.org/changeset/base/253219 Log: Fix some typoes in math.h cleanup. Modified: head/lib/msun/src/math.h Modified: head/lib/msun/src/math.h ============================================================================== --- head/lib/msun/src/math.h Thu Jul 11 19:18:13 2013 (r253218) +++ head/lib/msun/src/math.h Thu Jul 11 19:34:16 2013 (r253219) @@ -81,12 +81,12 @@ extern const union __nan_un { #define FP_SUBNORMAL 0x08 #define FP_ZERO 0x10 -#if __STDC_VERSION__ >= 201112L +#if __STDC_VERSION__ >= 201112L && defined(__clang__) #define __fp_type_select(x, f, d, ld) _Generic((x), \ float: f(x), \ double: d(x), \ long double: ld(x)) -#elif __GNUC_PREREQ__(5, 1) +#elif __GNUC_PREREQ__(3, 1) #define __fp_type_select(x, f, d, ld) __builtin_choose_expr( \ __builtin_types_compatible_p(__typeof(x), long double), ld(x), \ __builtin_choose_expr( \ @@ -101,7 +101,7 @@ extern const union __nan_un { #endif #define fpclassify(x) \ - __fp_type_select(x, __fpclassifyf, __fpclassifyd, __fpclassifyd) + __fp_type_select(x, __fpclassifyf, __fpclassifyd, __fpclassifyl) #define isfinite(x) __fp_type_select(x, __isfinitef, __isfinite, __isfinitel) #define isinf(x) __fp_type_select(x, __isinff, __isinf, __isinfl) #define isnan(x) \