Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2013 13:04:38 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253321 - head/lib/msun/src
Message-ID:  <201307131304.r6DD4cwC029378@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Sat Jul 13 13:04:38 2013
New Revision: 253321
URL: http://svnweb.freebsd.org/changeset/base/253321

Log:
  Cleaner support for type qualifiers.
  
  Submitted by:	Pasi Parviainen

Modified:
  head/lib/msun/src/math.h

Modified: head/lib/msun/src/math.h
==============================================================================
--- head/lib/msun/src/math.h	Sat Jul 13 10:47:17 2013	(r253320)
+++ head/lib/msun/src/math.h	Sat Jul 13 13:04:38 2013	(r253321)
@@ -83,19 +83,10 @@ extern const union __nan_un {
 
 #if (__STDC_VERSION__ >= 201112L && defined(__clang__)) || \
     __has_extension(c_generic_selections)
-#define	__fp_type_select(x, f, d, ld) _Generic((x),			\
+#define	__fp_type_select(x, f, d, ld) _Generic((0,(x)),			\
     float: f(x),							\
     double: d(x),							\
-    long double: ld(x),							\
-    volatile float: f(x),						\
-    volatile double: d(x),						\
-    volatile long double: ld(x),					\
-    volatile const float: f(x),						\
-    volatile const double: d(x),					\
-    volatile const long double: ld(x),					\
-    const float: f(x),							\
-    const double: d(x),							\
-    const long double: ld(x))
+    long double: ld(x))
 #elif __GNUC_PREREQ__(3, 1) && !defined(__cplusplus)
 #define	__fp_type_select(x, f, d, ld) __builtin_choose_expr(		\
     __builtin_types_compatible_p(__typeof(x), long double), ld(x),	\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307131304.r6DD4cwC029378>