diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2018-06-20 17:42:47 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2018-06-20 17:42:47 -0300 |
commit | badba23cacdec4c63bb0ac20fa3f90cc629f884c (patch) | |
tree | 1859b3c9f800198ce26197c103df7b7047443ab6 /sysdeps/generic | |
parent | 2d1c89a5d7c872a1109768f50e2508cf9a4b0348 (diff) | |
download | glibc-badba23cacdec4c63bb0ac20fa3f90cc629f884c.tar glibc-badba23cacdec4c63bb0ac20fa3f90cc629f884c.tar.gz glibc-badba23cacdec4c63bb0ac20fa3f90cc629f884c.tar.bz2 glibc-badba23cacdec4c63bb0ac20fa3f90cc629f884c.zip |
Move declare_mgen_finite_alias definition
Move declare_mgen_finite_alias, declare_mgen_finite_alias_s and
declare_mgen_finite_alias_x to a shared place in order to reuse them in
other files that also declare _finite aliases.
* math/e_exp2_template.c (declare_mgen_finite_alias,
declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
* sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/math-type-macros.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/generic/math-type-macros.h b/sysdeps/generic/math-type-macros.h index 0e8ef16d7a..5250815253 100644 --- a/sysdeps/generic/math-type-macros.h +++ b/sysdeps/generic/math-type-macros.h @@ -74,6 +74,21 @@ # error "SET_NAN_PAYLOAD must be defined." #endif +#ifndef declare_mgen_finite_alias_x +#define declare_mgen_finite_alias_x(from, to) \ + strong_alias (from, to ## _finite) +#endif + +#ifndef declare_mgen_finite_alias_s +# define declare_mgen_finite_alias_s(from,to) \ + declare_mgen_finite_alias_x (from, to) +#endif + +#ifndef declare_mgen_finite_alias +# define declare_mgen_finite_alias(from, to) \ + declare_mgen_finite_alias_s (M_SUF (from), M_SUF (to)) +#endif + #define __M_CONCAT(a,b) a ## b #define __M_CONCATX(a,b) __M_CONCAT(a,b) |