diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-10-13 16:11:33 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2017-12-01 11:51:08 -0200 |
commit | 1c051a9b09339c26a9ada5aeff1b184654cafaf2 (patch) | |
tree | c95984a896d8c1e117f95f2c1c05fe65e08263e3 /sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S | |
parent | dbeb74ef84eeb981fff843d34c2ba341faad9791 (diff) | |
download | glibc-1c051a9b09339c26a9ada5aeff1b184654cafaf2.tar.gz glibc-1c051a9b09339c26a9ada5aeff1b184654cafaf2.tar.xz glibc-1c051a9b09339c26a9ada5aeff1b184654cafaf2.zip |
sparc: refactor sparc32 nearbyint{f} selector to C
This patch refactors the sparc32 ifunc selector to a C implementation. Also, the generic symbol is moved to its own implementation file s_nearbyint{f}-generic.S). Checked on sparc64-linux-gnu and sparcv9-linux-gnu. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile (libm-sysdep_routines): Add s_nearbyintf-generic and s_nearbyint-generic. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S: Likewise. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c: Likewise. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove file. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: Likewise. Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S')
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S deleted file mode 100644 index c39d0aee65..0000000000 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S +++ /dev/null @@ -1,16 +0,0 @@ -#include <sparc-ifunc.h> -#include <math_ldbl_opt.h> -#include <libm-alias-double.h> - -SPARC_ASM_VIS3_IFUNC(nearbyint) - -libm_alias_double (__nearbyint, nearbyint) - -# undef weak_alias -# define weak_alias(a, b) -# undef compat_symbol -# define compat_symbol(a, b, c, d) - -#define __nearbyint __nearbyint_generic - -#include "../s_nearbyint.S" |