Use libm_alias_float for powerpc.

Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes powerpc libm function implementations use
libm_alias_float to define function aliases.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged for all its hard-float powerpc configurations.

	* sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
	(cosf): Define using libm_alias_float.
	* sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
	(fabsf): Define using libm_alias_float.
	* sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
	(fmaf): Define using libm_alias_float.
	* sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
	(rintf): Define using libm_alias_float.
	* sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
	(sinf): Define using libm_alias_float.
	* sysdeps/powerpc/power5+/fpu/s_modff.c: Include
	<libm-alias-float.h>.
	(modff): Define using libm_alias_float.
	* sysdeps/powerpc/power7/fpu/s_logbf.c: Include
	<libm-alias-float.h>.
	(logbf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
	<libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
	<libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
	<libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
	<libm-alias-float.h>.
	(lrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
	<libm-alias-float.h>.
	(lroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
	<libm-alias-float.h>.
	(nearbyintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
	<libm-alias-float.h>.
	(rintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
	<libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
	<libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
	Include <libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
	Include <libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
	Include <libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
	Include <libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
	Include <libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
	Include <libm-alias-float.h>.
	(logbf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
	Include <libm-alias-float.h>.
	(lrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
	Include <libm-alias-float.h>.
	(lroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
	Include <libm-alias-float.h>.
	(modff): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
	Include <libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
	Include <libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
	<libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
	<libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
	<libm-alias-float.h>.
	(lroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
	<libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
	<libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
	<libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
	<libm-alias-float.h>.
	(lrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
	<libm-alias-float.h>.
	(lroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
	<libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
	<libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
	<libm-alias-float.h>.
	(cosf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
	<libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
	<libm-alias-float.h>.
	(logbf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
	<libm-alias-float.h>.
	(modff): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
	<libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
	<libm-alias-float.h>.
	(sinf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
	<libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
	<libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
	<libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
	<libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
	<libm-alias-float.h>.
	(nearbyintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
	<libm-alias-float.h>.
	(rintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
	<libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
	<libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
	<libm-alias-float.h>.
	(ceilf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
	<libm-alias-float.h>.
	(floorf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
	<libm-alias-float.h>.
	(roundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
	<libm-alias-float.h>.
	(truncf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
	<libm-alias-float.h>.
	(copysignf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
	<libm-alias-float.h>.
	(cosf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
	<libm-alias-float.h>.
	(llrintf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
	<libm-alias-float.h>.
	(llroundf): Define using libm_alias_float.
	* sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
	<libm-alias-float.h>.
	(sinf): Define using libm_alias_float.
This commit is contained in:
Joseph Myers 2017-12-05 00:26:26 +00:00
parent 934855246d
commit 216933b242
75 changed files with 377 additions and 83 deletions

220
ChangeLog
View File

@ -1,3 +1,223 @@
2017-12-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
(cosf): Define using libm_alias_float.
* sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
(fabsf): Define using libm_alias_float.
* sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
(fmaf): Define using libm_alias_float.
* sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
(rintf): Define using libm_alias_float.
* sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
(sinf): Define using libm_alias_float.
* sysdeps/powerpc/power5+/fpu/s_modff.c: Include
<libm-alias-float.h>.
(modff): Define using libm_alias_float.
* sysdeps/powerpc/power7/fpu/s_logbf.c: Include
<libm-alias-float.h>.
(logbf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
<libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
<libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
<libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
<libm-alias-float.h>.
(lrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
<libm-alias-float.h>.
(lroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
<libm-alias-float.h>.
(nearbyintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
<libm-alias-float.h>.
(rintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
<libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
<libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
Include <libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
Include <libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
Include <libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
Include <libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
Include <libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
Include <libm-alias-float.h>.
(logbf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
Include <libm-alias-float.h>.
(lrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
Include <libm-alias-float.h>.
(lroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
Include <libm-alias-float.h>.
(modff): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
Include <libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
Include <libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
<libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
<libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
<libm-alias-float.h>.
(lroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
<libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
<libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
<libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
<libm-alias-float.h>.
(lrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
<libm-alias-float.h>.
(lroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
<libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
<libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
<libm-alias-float.h>.
(cosf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
<libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
<libm-alias-float.h>.
(logbf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
<libm-alias-float.h>.
(modff): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
<libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
<libm-alias-float.h>.
(sinf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
<libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
<libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
<libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
<libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
<libm-alias-float.h>.
(nearbyintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
<libm-alias-float.h>.
(rintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
<libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
<libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
<libm-alias-float.h>.
(ceilf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
<libm-alias-float.h>.
(floorf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
<libm-alias-float.h>.
(roundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
<libm-alias-float.h>.
(truncf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
<libm-alias-float.h>.
(copysignf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
<libm-alias-float.h>.
(cosf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
<libm-alias-float.h>.
(llrintf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
<libm-alias-float.h>.
(llroundf): Define using libm_alias_float.
* sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
<libm-alias-float.h>.
(sinf): Define using libm_alias_float.
2017-12-04 Florian Weimer <fweimer@redhat.com> 2017-12-04 Florian Weimer <fweimer@redhat.com>
* support/check.h (TEST_COMPARE): Define. * support/check.h (TEST_COMPARE): Define.

View File

@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <math.h> #include <math.h>
#include <math_private.h> #include <math_private.h>
#include <libm-alias-float.h>
static const float pio4 = 7.8539801e-1; static const float pio4 = 7.8539801e-1;
@ -66,4 +67,4 @@ __cosf (float x)
} }
} }
weak_alias (__cosf, cosf) libm_alias_float (__cos, cos)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
ENTRY(__fabs) ENTRY(__fabs)
@ -29,4 +30,4 @@ libm_alias_double (__fabs, fabs)
/* It turns out that it's safe to use this code even for single-precision. */ /* It turns out that it's safe to use this code even for single-precision. */
strong_alias(__fabs,__fabsf) strong_alias(__fabs,__fabsf)
weak_alias (__fabs,fabsf) libm_alias_float (__fabs, fabs)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
ENTRY_TOCLESS(__fmaf) ENTRY_TOCLESS(__fmaf)
/* float [f1] fmaf (float [f1] x, float [f2] y, float [f3] z); */ /* float [f1] fmaf (float [f1] x, float [f2] y, float [f3] z); */
@ -24,4 +25,4 @@ ENTRY_TOCLESS(__fmaf)
blr blr
END(__fmaf) END(__fmaf)
weak_alias (__fmaf,fmaf) libm_alias_float (__fma, fma)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <math.h> #include <math.h>
#include <libm-alias-float.h>
float float
__rintf (float x) __rintf (float x)
@ -39,4 +40,4 @@ __rintf (float x)
return x; return x;
} }
weak_alias (__rintf, rintf) libm_alias_float (__rint, rint)

View File

@ -20,6 +20,7 @@
#include <errno.h> #include <errno.h>
#include <math.h> #include <math.h>
#include <math_private.h> #include <math_private.h>
#include <libm-alias-float.h>
static const float pio4 = 7.8539801e-1; static const float pio4 = 7.8539801e-1;
@ -66,4 +67,4 @@ __sinf (float x)
} }
} }
weak_alias (__sinf, sinf) libm_alias_float (__sin, sin)

View File

@ -17,6 +17,7 @@
#include <math.h> #include <math.h>
#include <math_private.h> #include <math_private.h>
#include <libm-alias-float.h>
float float
__modff (float x, float *iptr) __modff (float x, float *iptr)
@ -43,4 +44,4 @@ __modff (float x, float *iptr)
return __copysignf (x - *iptr, x); return __copysignf (x - *iptr, x);
} }
} }
weak_alias (__modff, modff) libm_alias_float (__modf, modf)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "math_private.h" #include "math_private.h"
#include <libm-alias-float.h>
/* This implementation avoids FP to INT conversions by using VSX /* This implementation avoids FP to INT conversions by using VSX
bitwise instructions over FP values. */ bitwise instructions over FP values. */
@ -57,4 +58,4 @@ __logbf (float x)
The test is to avoid logb_downward (0.0) == -0.0. */ The test is to avoid logb_downward (0.0) == -0.0. */
return ret == -0.0 ? 0.0 : ret; return ret == -0.0 ? 0.0 : ret;
} }
weak_alias (__logbf, logbf) libm_alias_float (__logb, logb)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section .rodata.cst4,"aM",@progbits,4 .section .rodata.cst4,"aM",@progbits,4
.align 2 .align 2
@ -71,5 +72,5 @@ ENTRY (__ceilf)
blr blr
END (__ceilf) END (__ceilf)
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -21,6 +21,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
ENTRY(__copysign) ENTRY(__copysign)
@ -44,8 +45,8 @@ L(0): fnabs fp1,fp1
libm_alias_double (__copysign, copysign) libm_alias_double (__copysign, copysign)
/* It turns out that it's safe to use this code even for single-precision. */ /* It turns out that it's safe to use this code even for single-precision. */
weak_alias (__copysign,copysignf)
strong_alias(__copysign,__copysignf) strong_alias(__copysign,__copysignf)
libm_alias_float (__copysign, copysign)
#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) #if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, __copysign, copysignl, GLIBC_2_0) compat_symbol (libc, __copysign, copysignl, GLIBC_2_0)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section .rodata.cst4,"aM",@progbits,4 .section .rodata.cst4,"aM",@progbits,4
.align 2 .align 2
@ -71,5 +72,5 @@ ENTRY (__floorf)
blr blr
END (__floorf) END (__floorf)
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <math_private.h> #include <math_private.h>
#include <stdint.h> #include <stdint.h>
#include <libm-alias-float.h>
long long int long long int
__llrintf (float x) __llrintf (float x)
@ -43,4 +44,4 @@ __llrintf (float x)
return (long long int) ((i0 & 0x80000000) != 0 ? -mant : mant); return (long long int) ((i0 & 0x80000000) != 0 ? -mant : mant);
} }
} }
weak_alias (__llrintf, llrintf) libm_alias_float (__llrint, llrint)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <math_private.h> #include <math_private.h>
#include <stdint.h> #include <stdint.h>
#include <libm-alias-float.h>
/* Round to the nearest integer, with values exactly on a 0.5 boundary /* Round to the nearest integer, with values exactly on a 0.5 boundary
rounded away from zero, regardless of the current rounding mode. rounded away from zero, regardless of the current rounding mode.
@ -69,4 +70,4 @@ __llroundf (float x)
} }
return xr; return xr;
} }
weak_alias (__llroundf, llroundf) libm_alias_float (__llround, llround)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long int[r3] __lrint (double x[fp1]) */ /* long int[r3] __lrint (double x[fp1]) */
@ -36,4 +37,4 @@ ENTRY (__lrint)
libm_alias_double (__lrint, lrint) libm_alias_double (__lrint, lrint)
strong_alias (__lrint, __lrintf) strong_alias (__lrint, __lrintf)
weak_alias (__lrint, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
.section .rodata.cst4,"aM",@progbits,4 .section .rodata.cst4,"aM",@progbits,4
@ -119,4 +120,4 @@ ENTRY (__lround)
libm_alias_double (__lround, lround) libm_alias_double (__lround, lround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -21,6 +21,7 @@
when it's coded in C. */ when it's coded in C. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
/* float [fp1] nearbyintf(float [fp1] x) */ /* float [fp1] nearbyintf(float [fp1] x) */
@ -75,4 +76,4 @@ L(lessthanzero):
blr blr
END (__nearbyintf) END (__nearbyintf)
weak_alias (__nearbyintf, nearbyintf) libm_alias_float (__nearbyint, nearbyint)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section .rodata.cst4,"aM",@progbits,4 .section .rodata.cst4,"aM",@progbits,4
.align 2 .align 2
@ -61,5 +62,5 @@ ENTRY (__rintf)
blr blr
END (__rintf) END (__rintf)
weak_alias (__rintf, rintf) libm_alias_float (__rint, rint)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section .rodata.cst8,"aM",@progbits,8 .section .rodata.cst8,"aM",@progbits,8
.align 3 .align 3
@ -91,5 +92,5 @@ ENTRY (__roundf )
blr blr
END (__roundf) END (__roundf)
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section .rodata.cst4,"aM",@progbits,4 .section .rodata.cst4,"aM",@progbits,4
.align 2 .align 2
@ -78,5 +79,5 @@ ENTRY (__truncf)
blr blr
END (__truncf) END (__truncf)
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__ceilf) __ceilf_ppc32 attribute_hidden; extern __typeof (__ceilf) __ceilf_ppc32 attribute_hidden;
extern __typeof (__ceilf) __ceilf_power5plus attribute_hidden; extern __typeof (__ceilf) __ceilf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__ceilf,
? __ceilf_power5plus ? __ceilf_power5plus
: __ceilf_ppc32); : __ceilf_ppc32);
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
/* It's safe to use double-precision implementation for single-precision. */ /* It's safe to use double-precision implementation for single-precision. */
extern __typeof (__copysignf) __copysign_ppc32 attribute_hidden; extern __typeof (__copysignf) __copysign_ppc32 attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__copysignf,
? __copysign_power6 ? __copysign_power6
: __copysign_ppc32); : __copysign_ppc32);
weak_alias (__copysignf, copysignf) libm_alias_float (__copysign, copysign)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__floorf) __floorf_ppc32 attribute_hidden; extern __typeof (__floorf) __floorf_ppc32 attribute_hidden;
extern __typeof (__floorf) __floorf_power5plus attribute_hidden; extern __typeof (__floorf) __floorf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__floorf,
? __floorf_power5plus ? __floorf_power5plus
: __floorf_ppc32); : __floorf_ppc32);
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__llrintf) __llrintf_ppc32 attribute_hidden; extern __typeof (__llrintf) __llrintf_ppc32 attribute_hidden;
extern __typeof (__llrintf) __llrintf_power6 attribute_hidden; extern __typeof (__llrintf) __llrintf_power6 attribute_hidden;
@ -28,4 +29,4 @@ libc_ifunc (__llrintf,
? __llrintf_power6 ? __llrintf_power6
: __llrintf_ppc32); : __llrintf_ppc32);
weak_alias (__llrintf, llrintf) libm_alias_float (__llrint, llrint)

View File

@ -18,6 +18,7 @@
#include <math.h> #include <math.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
/* It's safe to use double-precision implementation for single-precision. */ /* It's safe to use double-precision implementation for single-precision. */
extern __typeof (__llroundf) __llround_ppc32 attribute_hidden; extern __typeof (__llroundf) __llround_ppc32 attribute_hidden;
@ -31,4 +32,4 @@ libc_ifunc (__llroundf,
? __llround_power5plus ? __llround_power5plus
: __llround_ppc32); : __llround_ppc32);
weak_alias (__llroundf, llroundf) libm_alias_float (__llround, llround)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__logbf) __logbf_ppc32 attribute_hidden; extern __typeof (__logbf) __logbf_ppc32 attribute_hidden;
extern __typeof (__logbf) __logbf_power7 attribute_hidden; extern __typeof (__logbf) __logbf_power7 attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__logbf,
? __logbf_power7 ? __logbf_power7
: __logbf_ppc32); : __logbf_ppc32);
weak_alias (__logbf, logbf) libm_alias_float (__logb, logb)

View File

@ -18,6 +18,7 @@
#include <math.h> #include <math.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
/* It's safe to use double-precision implementation for single-precision. */ /* It's safe to use double-precision implementation for single-precision. */
extern __typeof (__lrintf) __lrint_ppc32 attribute_hidden; extern __typeof (__lrintf) __lrint_ppc32 attribute_hidden;
@ -28,4 +29,4 @@ libc_ifunc (__lrintf,
__lrint_power6x __lrint_power6x
: __lrint_ppc32); : __lrint_ppc32);
weak_alias (__lrintf, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -18,6 +18,7 @@
#include <math.h> #include <math.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
/* It's safe to use double-precision implementation for single-precision. */ /* It's safe to use double-precision implementation for single-precision. */
extern __typeof (__lroundf) __lround_ppc32 attribute_hidden; extern __typeof (__lroundf) __lround_ppc32 attribute_hidden;
@ -31,4 +32,4 @@ libc_ifunc (__lroundf,
__lround_power5plus __lround_power5plus
: __lround_ppc32); : __lround_ppc32);
weak_alias (__lroundf, lroundf) libm_alias_float (__lround, lround)

View File

@ -18,6 +18,7 @@
#include <math.h> #include <math.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__modff) __modff_ppc32 attribute_hidden; extern __typeof (__modff) __modff_ppc32 attribute_hidden;
extern __typeof (__modff) __modff_power5plus attribute_hidden; extern __typeof (__modff) __modff_power5plus attribute_hidden;
@ -27,4 +28,4 @@ libc_ifunc (__modff,
? __modff_power5plus ? __modff_power5plus
: __modff_ppc32); : __modff_ppc32);
weak_alias (__modff, modff) libm_alias_float (__modf, modf)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__roundf) __roundf_ppc32 attribute_hidden; extern __typeof (__roundf) __roundf_ppc32 attribute_hidden;
extern __typeof (__roundf) __roundf_power5plus attribute_hidden; extern __typeof (__roundf) __roundf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__roundf,
? __roundf_power5plus ? __roundf_power5plus
: __roundf_ppc32); : __roundf_ppc32);
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__truncf) __truncf_ppc32 attribute_hidden; extern __typeof (__truncf) __truncf_ppc32 attribute_hidden;
extern __typeof (__truncf) __truncf_power5plus attribute_hidden; extern __typeof (__truncf) __truncf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__truncf,
? __truncf_power5plus ? __truncf_power5plus
: __truncf_ppc32); : __truncf_ppc32);
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
/* long long int[r3, r4] __llrintf (float x[fp1]) */ /* long long int[r3, r4] __llrintf (float x[fp1]) */
ENTRY (__llrintf) ENTRY (__llrintf)
@ -34,5 +35,5 @@ ENTRY (__llrintf)
blr blr
END (__llrintf) END (__llrintf)
weak_alias (__llrintf, llrintf) libm_alias_float (__llrint, llrint)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
.section .rodata.cst8,"aM",@progbits,8 .section .rodata.cst8,"aM",@progbits,8
@ -96,4 +97,4 @@ ENTRY (__llround)
libm_alias_double (__llround, llround) libm_alias_double (__llround, llround)
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
EALIGN (__ceilf, 4, 0) EALIGN (__ceilf, 4, 0)
@ -25,5 +26,5 @@ EALIGN (__ceilf, 4, 0)
blr blr
END (__ceilf) END (__ceilf)
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
EALIGN (__floorf, 4, 0) EALIGN (__floorf, 4, 0)
@ -25,5 +26,5 @@ EALIGN (__floorf, 4, 0)
blr blr
END (__floorf) END (__floorf)
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long [r3] llround (float x [fp1]) /* long [r3] llround (float x [fp1])
@ -49,4 +50,4 @@ ENTRY (__llround)
libm_alias_double (__llround, llround) libm_alias_double (__llround, llround)
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long [r3] lround (float x [fp1]) /* long [r3] lround (float x [fp1])
@ -47,4 +48,4 @@ ENTRY (__lround)
libm_alias_double (__lround, lround) libm_alias_double (__lround, lround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
EALIGN (__roundf, 4, 0) EALIGN (__roundf, 4, 0)
@ -25,5 +26,5 @@ EALIGN (__roundf, 4, 0)
blr blr
END (__roundf) END (__roundf)
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
EALIGN (__truncf, 4, 0) EALIGN (__truncf, 4, 0)
@ -25,5 +26,5 @@ EALIGN (__truncf, 4, 0)
blr blr
END (__truncf) END (__truncf)
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -19,6 +19,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* double [f1] copysign (double [f1] x, double [f2] y); /* double [f1] copysign (double [f1] x, double [f2] y);
@ -41,7 +42,7 @@ libm_alias_double (__copysign, copysign)
single-precision. */ single-precision. */
strong_alias (__copysign, __copysignf) strong_alias (__copysign, __copysignf)
hidden_def (__copysignf) hidden_def (__copysignf)
weak_alias (__copysignf, copysignf) libm_alias_float (__copysign, copysign)
#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) #if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, copysign, copysignl, GLIBC_2_0); compat_symbol (libc, copysign, copysignl, GLIBC_2_0);

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
/* long long int[r3, r4] __llrintf (float x[fp1]) */ /* long long int[r3, r4] __llrintf (float x[fp1]) */
ENTRY (__llrintf) ENTRY (__llrintf)
@ -34,5 +35,5 @@ ENTRY (__llrintf)
blr blr
END (__llrintf) END (__llrintf)
weak_alias (__llrintf, llrintf) libm_alias_float (__llrint, llrint)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long [r3] llround (float x [fp1]) /* long [r3] llround (float x [fp1])
@ -49,4 +50,4 @@ ENTRY (__llround)
libm_alias_double (__llround, llround) libm_alias_double (__llround, llround)
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
.machine "power6" .machine "power6"
@ -31,4 +32,4 @@ ENTRY (__lrint)
libm_alias_double (__lrint, lrint) libm_alias_double (__lrint, lrint)
strong_alias (__lrint, __lrintf) strong_alias (__lrint, __lrintf)
weak_alias (__lrint, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long [r3] lround (float x [fp1]) /* long [r3] lround (float x [fp1])
@ -41,4 +42,4 @@ ENTRY (__lround)
libm_alias_double (__lround, lround) libm_alias_double (__lround, lround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__ceilf) __ceilf_ppc64 attribute_hidden; extern __typeof (__ceilf) __ceilf_ppc64 attribute_hidden;
extern __typeof (__ceilf) __ceilf_power5plus attribute_hidden; extern __typeof (__ceilf) __ceilf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__ceilf,
? __ceilf_power5plus ? __ceilf_power5plus
: __ceilf_ppc64); : __ceilf_ppc64);
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
/* It's safe to use double-precision implementation for single-precision. */ /* It's safe to use double-precision implementation for single-precision. */
extern __typeof (__copysignf) __copysign_ppc64 attribute_hidden; extern __typeof (__copysignf) __copysign_ppc64 attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__copysignf,
? __copysign_power6 ? __copysign_power6
: __copysign_ppc64); : __copysign_ppc64);
weak_alias (__copysignf, copysignf) libm_alias_float (__copysign, copysign)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__cosf) __cosf_ppc64 attribute_hidden; extern __typeof (__cosf) __cosf_ppc64 attribute_hidden;
extern __typeof (__cosf) __cosf_power8 attribute_hidden; extern __typeof (__cosf) __cosf_power8 attribute_hidden;
@ -28,4 +29,4 @@ libc_ifunc (__cosf,
? __cosf_power8 ? __cosf_power8
: __cosf_ppc64); : __cosf_ppc64);
weak_alias (__cosf, cosf) libm_alias_float (__cos, cos)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__floorf) __floorf_ppc64 attribute_hidden; extern __typeof (__floorf) __floorf_ppc64 attribute_hidden;
extern __typeof (__floorf) __floorf_power5plus attribute_hidden; extern __typeof (__floorf) __floorf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__floorf,
? __floorf_power5plus ? __floorf_power5plus
: __floorf_ppc64); : __floorf_ppc64);
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -24,6 +24,7 @@
#undef lrintf #undef lrintf
#undef __lrintf #undef __lrintf
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__llrintf) __llrint_ppc64 attribute_hidden; extern __typeof (__llrintf) __llrint_ppc64 attribute_hidden;
extern __typeof (__llrintf) __llrint_power6x attribute_hidden; extern __typeof (__llrintf) __llrint_power6x attribute_hidden;
@ -41,6 +42,6 @@ libc_ifunc (__llrintf,
? __llrint_power6x ? __llrint_power6x
: __llrint_ppc64); : __llrint_ppc64);
weak_alias (__llrintf, llrintf) libm_alias_float (__llrint, llrint)
strong_alias (__llrintf, __lrintf) strong_alias (__llrintf, __lrintf)
weak_alias (__lrintf, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -24,6 +24,7 @@
#undef lroundf #undef lroundf
#undef __lroundf #undef __lroundf
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__llroundf) __llroundf_ppc64 attribute_hidden; extern __typeof (__llroundf) __llroundf_ppc64 attribute_hidden;
extern __typeof (__llroundf) __llround_power6x attribute_hidden; extern __typeof (__llroundf) __llround_power6x attribute_hidden;
@ -41,6 +42,6 @@ libc_ifunc (__llroundf,
? __llround_power6x ? __llround_power6x
: __llroundf_ppc64); : __llroundf_ppc64);
weak_alias (__llroundf, llroundf) libm_alias_float (__llround, llround)
strong_alias (__llroundf, __lroundf) strong_alias (__llroundf, __lroundf)
weak_alias (__lroundf, lroundf) libm_alias_float (__lround, lround)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__logbf) __logbf_ppc64 attribute_hidden; extern __typeof (__logbf) __logbf_ppc64 attribute_hidden;
extern __typeof (__logbf) __logbf_power7 attribute_hidden; extern __typeof (__logbf) __logbf_power7 attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__logbf,
? __logbf_power7 ? __logbf_power7
: __logbf_ppc64); : __logbf_ppc64);
weak_alias (__logbf, logbf) libm_alias_float (__logb, logb)

View File

@ -18,6 +18,7 @@
#include <math.h> #include <math.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__modff) __modff_ppc64 attribute_hidden; extern __typeof (__modff) __modff_ppc64 attribute_hidden;
extern __typeof (__modff) __modff_power5plus attribute_hidden; extern __typeof (__modff) __modff_power5plus attribute_hidden;
@ -27,4 +28,4 @@ libc_ifunc (__modff,
? __modff_power5plus ? __modff_power5plus
: __modff_ppc64); : __modff_ppc64);
weak_alias (__modff, modff) libm_alias_float (__modf, modf)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__roundf) __roundf_ppc64 attribute_hidden; extern __typeof (__roundf) __roundf_ppc64 attribute_hidden;
extern __typeof (__roundf) __roundf_power5plus attribute_hidden; extern __typeof (__roundf) __roundf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__roundf,
? __roundf_power5plus ? __roundf_power5plus
: __roundf_ppc64); : __roundf_ppc64);
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -19,6 +19,7 @@
#include <math.h> #include <math.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__sinf) __sinf_ppc64 attribute_hidden; extern __typeof (__sinf) __sinf_ppc64 attribute_hidden;
extern __typeof (__sinf) __sinf_power8 attribute_hidden; extern __typeof (__sinf) __sinf_power8 attribute_hidden;
@ -28,4 +29,4 @@ libc_ifunc (__sinf,
? __sinf_power8 ? __sinf_power8
: __sinf_ppc64); : __sinf_ppc64);
weak_alias (__sinf, sinf) libm_alias_float (__sin, sin)

View File

@ -20,6 +20,7 @@
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include "init-arch.h" #include "init-arch.h"
#include <libm-alias-float.h>
extern __typeof (__truncf) __truncf_ppc64 attribute_hidden; extern __typeof (__truncf) __truncf_ppc64 attribute_hidden;
extern __typeof (__truncf) __truncf_power5plus attribute_hidden; extern __typeof (__truncf) __truncf_power5plus attribute_hidden;
@ -29,4 +30,4 @@ libc_ifunc (__truncf,
? __truncf_power5plus ? __truncf_power5plus
: __truncf_ppc64); : __truncf_ppc64);
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.p2align 3 .p2align 3
@ -62,5 +63,5 @@ ENTRY (__ceilf, 4)
blr blr
END (__ceilf) END (__ceilf)
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -21,6 +21,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
ENTRY_TOCLESS (__copysign) ENTRY_TOCLESS (__copysign)
@ -44,8 +45,8 @@ L(0): fnabs fp1,fp1
libm_alias_double (__copysign, copysign) libm_alias_double (__copysign, copysign)
/* It turns out that it's safe to use this code even for single-precision. */ /* It turns out that it's safe to use this code even for single-precision. */
weak_alias (__copysign,copysignf)
strong_alias(__copysign,__copysignf) strong_alias(__copysign,__copysignf)
libm_alias_float (__copysign, copysign)
#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) #if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, __copysign, copysignl, GLIBC_2_0) compat_symbol (libc, __copysign, copysignl, GLIBC_2_0)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.p2align 3 .p2align 3
@ -62,5 +63,5 @@ ENTRY (__floorf, 4)
blr blr
END (__floorf) END (__floorf)
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long long int[r3] __llrint (double x[fp1]) */ /* long long int[r3] __llrint (double x[fp1]) */
@ -39,6 +40,6 @@ libm_alias_double (__lrint, lrint)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llrint, __llrintf) strong_alias (__llrint, __llrintf)
weak_alias (__llrint, llrintf) libm_alias_float (__llrint, llrint)
strong_alias (__lrint, __lrintf) strong_alias (__lrint, __lrintf)
weak_alias (__lrint, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.LC0: /* 2^23 */ .LC0: /* 2^23 */
@ -83,6 +84,6 @@ ENTRY (__llroundf)
END (__llroundf) END (__llroundf)
strong_alias (__llroundf, __lroundf) strong_alias (__llroundf, __lroundf)
weak_alias (__llroundf, llroundf) libm_alias_float (__llround, llround)
weak_alias (__lroundf, lroundf) libm_alias_float (__lround, lround)

View File

@ -21,6 +21,7 @@
when it's coded in C. */ when it's coded in C. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
/* float [fp1] nearbyintf(float [fp1]) */ /* float [fp1] nearbyintf(float [fp1]) */
@ -65,4 +66,4 @@ L(lessthanzero):
blr blr
END (__nearbyintf) END (__nearbyintf)
weak_alias (__nearbyintf, nearbyintf) libm_alias_float (__nearbyint, nearbyint)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.p2align 3 .p2align 3
@ -52,5 +53,5 @@ ENTRY (__rintf, 4)
blr blr
END (__rintf) END (__rintf)
weak_alias (__rintf, rintf) libm_alias_float (__rint, rint)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.p2align 3 .p2align 3
@ -77,5 +78,5 @@ ENTRY (__roundf, 4)
blr blr
END (__roundf) END (__roundf)
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.section ".toc","aw" .section ".toc","aw"
.p2align 3 .p2align 3
@ -69,5 +70,5 @@ ENTRY (__truncf, 4)
blr blr
END (__truncf) END (__truncf)
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
ENTRY_TOCLESS (__ceilf, 4) ENTRY_TOCLESS (__ceilf, 4)
@ -26,5 +27,5 @@ ENTRY_TOCLESS (__ceilf, 4)
blr blr
END (__ceilf) END (__ceilf)
weak_alias (__ceilf, ceilf) libm_alias_float (__ceil, ceil)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
ENTRY_TOCLESS (__floorf, 4) ENTRY_TOCLESS (__floorf, 4)
@ -26,5 +27,5 @@ ENTRY_TOCLESS (__floorf, 4)
blr blr
END (__floorf) END (__floorf)
weak_alias (__floorf, floorf) libm_alias_float (__floor, floor)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long long [r3] llround (float x [fp1]) /* long long [r3] llround (float x [fp1])
@ -50,6 +51,6 @@ libm_alias_double (__lround, lround)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
ENTRY_TOCLESS (__roundf, 4) ENTRY_TOCLESS (__roundf, 4)
@ -26,5 +27,5 @@ ENTRY_TOCLESS (__roundf, 4)
blr blr
END (__roundf) END (__roundf)
weak_alias (__roundf, roundf) libm_alias_float (__round, round)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <libm-alias-float.h>
.machine "power5" .machine "power5"
ENTRY_TOCLESS (__truncf, 4) ENTRY_TOCLESS (__truncf, 4)
@ -26,5 +27,5 @@ ENTRY_TOCLESS (__truncf, 4)
blr blr
END (__truncf) END (__truncf)
weak_alias (__truncf, truncf) libm_alias_float (__trunc, trunc)

View File

@ -19,6 +19,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* double [f1] copysign (double [f1] x, double [f2] y); /* double [f1] copysign (double [f1] x, double [f2] y);
@ -41,7 +42,7 @@ libm_alias_double (__copysign, copysign)
single-precision. */ single-precision. */
strong_alias (__copysign, __copysignf) strong_alias (__copysign, __copysignf)
hidden_def (__copysignf) hidden_def (__copysignf)
weak_alias (__copysignf, copysignf) libm_alias_float (__copysign, copysign)
#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) #if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, copysign, copysignl, GLIBC_2_0); compat_symbol (libc, copysign, copysignl, GLIBC_2_0);

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
.machine "power6" .machine "power6"
@ -36,6 +37,6 @@ libm_alias_double (__lrint, lrint)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llrint, __llrintf) strong_alias (__llrint, __llrintf)
weak_alias (__llrint, llrintf) libm_alias_float (__llrint, llrint)
strong_alias (__lrint, __lrintf) strong_alias (__lrint, __lrintf)
weak_alias (__lrint, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
/* long long [r3] llround (float x [fp1]) /* long long [r3] llround (float x [fp1])
@ -46,6 +47,6 @@ libm_alias_double (__lround, lround)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -19,6 +19,7 @@
#include <sysdep.h> #include <sysdep.h>
#define _ERRNO_H 1 #define _ERRNO_H 1
#include <bits/errno.h> #include <bits/errno.h>
#include <libm-alias-float.h>
#define FRAMESIZE (FRAME_MIN_SIZE+16) #define FRAMESIZE (FRAME_MIN_SIZE+16)
@ -505,4 +506,4 @@ L(DPone):
L(DPtwo): L(DPtwo):
.8byte 0x4000000000000000 /* 2.0 */ .8byte 0x4000000000000000 /* 2.0 */
weak_alias(__cosf, cosf) libm_alias_float (__cos, cos)

View File

@ -18,6 +18,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
#define MFVSRD_R3_V1 .long 0x7c230066 /* mfvsrd r3,vs1 */ #define MFVSRD_R3_V1 .long 0x7c230066 /* mfvsrd r3,vs1 */
@ -37,6 +38,6 @@ libm_alias_double (__lrint, lrint)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llrint, __llrintf) strong_alias (__llrint, __llrintf)
weak_alias (__llrint, llrintf) libm_alias_float (__llrint, llrint)
strong_alias (__lrint, __lrintf) strong_alias (__lrint, __lrintf)
weak_alias (__lrint, lrintf) libm_alias_float (__lrint, lrint)

View File

@ -19,6 +19,7 @@
#include <sysdep.h> #include <sysdep.h>
#include <endian.h> #include <endian.h>
#include <math_ldbl_opt.h> #include <math_ldbl_opt.h>
#include <libm-alias-float.h>
#include <libm-alias-double.h> #include <libm-alias-double.h>
#define MFVSRD_R3_V1 .long 0x7c230066 /* mfvsrd r3,vs1 */ #define MFVSRD_R3_V1 .long 0x7c230066 /* mfvsrd r3,vs1 */
@ -40,6 +41,6 @@ libm_alias_double (__lround, lround)
double parameters are passed in 64bit FPRs and both versions are expected double parameters are passed in 64bit FPRs and both versions are expected
to return [long] long type. */ to return [long] long type. */
strong_alias (__llround, __llroundf) strong_alias (__llround, __llroundf)
weak_alias (__llround, llroundf) libm_alias_float (__llround, llround)
strong_alias (__lround, __lroundf) strong_alias (__lround, __lroundf)
weak_alias (__lround, lroundf) libm_alias_float (__lround, lround)

View File

@ -19,6 +19,7 @@
#include <sysdep.h> #include <sysdep.h>
#define _ERRNO_H 1 #define _ERRNO_H 1
#include <bits/errno.h> #include <bits/errno.h>
#include <libm-alias-float.h>
#define FRAMESIZE (FRAME_MIN_SIZE+16) #define FRAMESIZE (FRAME_MIN_SIZE+16)
@ -516,4 +517,4 @@ L(DPone):
L(DPtwo): L(DPtwo):
.8byte 0x4000000000000000 /* 2.0 */ .8byte 0x4000000000000000 /* 2.0 */
weak_alias(__sinf, sinf) libm_alias_float (__sin, sin)