Make ldexpF generic.
commit9f9834f582f87cc84bfaa11cff5f98fb661c288d
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Thu, 8 Sep 2016 13:48:08 +0000 (8 08:48 -0500)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Tue, 20 Sep 2016 19:37:40 +0000 (20 14:37 -0500)
tree871f7a56da332d8fadb01fb81eae95a7ed6545c2
parent8837917cf17b083ac4178352c740b0bfeada4d7f
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.
ChangeLog
math/Makefile
math/s_ldexp_template.c [moved from math/s_ldexp.c with 63% similarity]
math/s_ldexpf.c [deleted file]
math/s_ldexpl.c [deleted file]
sysdeps/generic/math-type-macros-double.h
sysdeps/generic/math-type-macros.h
sysdeps/ieee754/ldbl-opt/s_ldexp.c [copied from sysdeps/generic/math-type-macros-double.h with 50% similarity]
sysdeps/ieee754/ldbl-opt/s_ldexpl.c [copied from sysdeps/generic/math-type-macros-double.h with 50% similarity]