From 7b7c39450b3c4ab35b4960346e61d7b177ee728e Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Thu, 25 Aug 2016 11:25:33 -0500 Subject: 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. --- sysdeps/generic/math-type-macros-double.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic') 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 -- cgit 1.4.1