mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
aa1142c593
Continuing the preparation for additional _FloatN / _FloatNx function aliases, this patch makes ia64 libm function implementations use libm_alias_float to define function aliases. The same approach is followed as with the corresponding long double and double patches: the ia64-specific macros are left unchanged, with calls to libm_alias_float_other being added in most cases and libm_alias_float itself being used in only a few places. Tested with build-many-glibcs.py for ia64-linux-gnu that installed stripped shared libraries are unchanged by the patch. * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>. * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other. * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise. * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise. * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise. * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise. * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise. * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise. * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise. * sysdeps/ia64/fpu/e_expf.S (expf): Likewise. * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise. * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise. * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using libm_alias_float_r. * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other. * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise. (logf): Likewise. * sysdeps/ia64/fpu/e_powf.S (powf): Likewise. * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise. * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise. * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise. * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise. * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise. * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise. * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise. * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise. * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using libm_alias_float. * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other. (cosf): Likewise. * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise. * sysdeps/ia64/fpu/s_erff.S (erff): Likewise. * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise. * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise. * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise. * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise. * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise. * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise. * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise. * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise. * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise. * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise. * sysdeps/ia64/fpu/s_modff.S (modff): Likewise. * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise. * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise. * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise. * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise. * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise. * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using libm_alias_float. * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other. * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise. * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise. * sysdeps/ia64/fpu/w_lgammaf_main.c [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise. * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
#ifndef _ISOMAC
|
|
# include <sysdep.h>
|
|
# undef ret /* get rid of the stupid "ret" macro; it breaks br.ret */
|
|
|
|
# include <libm-alias-float.h>
|
|
# include <libm-alias-double.h>
|
|
# include <libm-alias-ldouble.h>
|
|
|
|
/* Support for compatible assembler handling. */
|
|
|
|
# define ASM_SIZE_DIRECTIVE(name) .size name,.-name
|
|
|
|
# define LOCAL_LIBM_ENTRY(name) \
|
|
.proc name; \
|
|
name:
|
|
|
|
# define LOCAL_LIBM_END(name) \
|
|
.endp name; \
|
|
ASM_SIZE_DIRECTIVE(name)
|
|
|
|
|
|
# define RODATA .rodata
|
|
# define LOCAL_OBJECT_START(name) \
|
|
name:; \
|
|
.type name, @object
|
|
# define LOCAL_OBJECT_END(name) \
|
|
ASM_SIZE_DIRECTIVE(name)
|
|
|
|
# define GLOBAL_LIBM_ENTRY(name) \
|
|
LOCAL_LIBM_ENTRY(name); \
|
|
.global name
|
|
# define GLOBAL_LIBM_END(name) LOCAL_LIBM_END(name)
|
|
|
|
# define INTERNAL_LIBM_ENTRY(name) \
|
|
GLOBAL_LIBM_ENTRY(__libm_##name); \
|
|
.global __libm_##name
|
|
# define INTERNAL_LIBM_END(name) GLOBAL_LIBM_END(__libm_##name)
|
|
|
|
# define WEAK_LIBM_ENTRY(name) \
|
|
.align 32; \
|
|
LOCAL_LIBM_ENTRY(__##name); \
|
|
.global __##name; \
|
|
__##name:
|
|
# define WEAK_LIBM_END(name) \
|
|
weak_alias (__##name, name); \
|
|
.hidden __##name; \
|
|
LOCAL_LIBM_END(__##name); \
|
|
ASM_SIZE_DIRECTIVE(__##name); \
|
|
.type __##name, @function
|
|
|
|
# define GLOBAL_IEEE754_ENTRY(name) \
|
|
WEAK_LIBM_ENTRY(name); \
|
|
.global __ieee754_##name; \
|
|
.hidden __ieee754_##name; \
|
|
__ieee754_##name:
|
|
# define GLOBAL_IEEE754_END(name) \
|
|
WEAK_LIBM_END(name); \
|
|
ASM_SIZE_DIRECTIVE(__ieee754_##name); \
|
|
.type __ieee754_##name, @function
|
|
|
|
# if defined ASSEMBLER && IS_IN (libc)
|
|
# define __libm_error_support HIDDEN_JUMPTARGET(__libm_error_support)
|
|
# endif
|
|
#endif
|