about summary refs log tree commit diff
path: root/sysdeps/generic/math-type-macros-double.h
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-08-25 11:25:33 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-09-01 09:28:05 -0500
commit7b7c39450b3c4ab35b4960346e61d7b177ee728e (patch)
tree251612e6e9a4192b1e5ca8010589ec64a692b9fa /sysdeps/generic/math-type-macros-double.h
parent4d728087ef8cc826b05bd21d0c74d4eca9b1a27d (diff)
downloadglibc-7b7c39450b3c4ab35b4960346e61d7b177ee728e.tar.gz
glibc-7b7c39450b3c4ab35b4960346e61d7b177ee728e.tar.xz
glibc-7b7c39450b3c4ab35b4960346e61d7b177ee728e.zip
Make common fdim implementation generic.
The only difference is the usage of math_narrow_eval when
building s_fdiml.c.  This should be harmless for long double,
but I did observe some code generation changes on m68k, but
lack the resources to test it.

Likewise, to more easily support overriding symbol generation,
the aliasing macros are always conditionally defined on their
absence to reduce boilerplate.

I also ran builds for i486, ppc64, sparcv9, aarch64,
s390x and observed no changes to s_fdim* objects.
Diffstat (limited to 'sysdeps/generic/math-type-macros-double.h')
-rw-r--r--sysdeps/generic/math-type-macros-double.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/math-type-macros-double.h b/sysdeps/generic/math-type-macros-double.h
index 4149b39a9b..154f416a7f 100644
--- a/sysdeps/generic/math-type-macros-double.h
+++ b/sysdeps/generic/math-type-macros-double.h
@@ -29,12 +29,12 @@
 /* Machines without a distinct long double type
    alias long double functions to their double
    equivalent.  */
-#if defined NO_LONG_DOUBLE
+#if defined NO_LONG_DOUBLE && !defined declare_mgen_alias
 # define declare_mgen_alias(from, to)	    \
    weak_alias (from, to)		    \
    strong_alias (from, from ## l)	    \
    weak_alias (from, to ## l)
-#else
+#elif !defined declare_mgen_alias
 # define declare_mgen_alias(from, to)	    \
    weak_alias (M_SUF (from), M_SUF (to))
 #endif