diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-09-08 08:48:08 -0500 |
---|---|---|
committer | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-09-20 14:37:40 -0500 |
commit | 9f9834f582f87cc84bfaa11cff5f98fb661c288d (patch) | |
tree | 871f7a56da332d8fadb01fb81eae95a7ed6545c2 /sysdeps/generic/math-type-macros-double.h | |
parent | 8837917cf17b083ac4178352c740b0bfeada4d7f (diff) |
Make ldexpF generic.
This one is a little more tricky since it is built both for
libm and libc, and exports multiple aliases.
To simplify aliasing, a new macro is introduced which handles
aliasing to two symbols. By default, it just applies
declare_mgen_alias to both target symbols.
Likewise, the makefile is tweaked a little to generate
templates for shared files too, and a new rule is added
to build m_*.c objects from the objpfx directory.
Verified there are no symbol or code changes using a script
to diff the *_ldexp* object files on s390x, aarch64, arm,
x86_64, and ppc64.
Diffstat (limited to 'sysdeps/generic/math-type-macros-double.h')
-rw-r--r-- | sysdeps/generic/math-type-macros-double.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/generic/math-type-macros-double.h b/sysdeps/generic/math-type-macros-double.h index 154f416a7f..284a6a48db 100644 --- a/sysdeps/generic/math-type-macros-double.h +++ b/sysdeps/generic/math-type-macros-double.h @@ -34,9 +34,13 @@ weak_alias (from, to) \ strong_alias (from, from ## l) \ weak_alias (from, to ## l) -#elif !defined declare_mgen_alias -# define declare_mgen_alias(from, to) \ - weak_alias (M_SUF (from), M_SUF (to)) +#endif + +#if defined NO_LONG_DOUBLE && !defined declare_mgen_alias_2 +# define declare_mgen_alias_2(from, to, to2) \ + declare_mgen_alias (from, to) \ + weak_alias (from, to2) \ + weak_alias (from, to2 ## l) #endif /* Supply the generic macros. */ |