diff options
author | David S. Miller <davem@davemloft.net> | 2013-01-15 20:59:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-15 20:59:54 -0800 |
commit | c42d5e9862d9e62d2864d11f628b1e8b5be13ac2 (patch) | |
tree | 1810c25365032cc736e305172c07867f67691891 /sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S | |
parent | c19a9f896c8ab28ad205e3ccf561ca8e9ebf426f (diff) | |
download | glibc-c42d5e9862d9e62d2864d11f628b1e8b5be13ac2.tar.gz glibc-c42d5e9862d9e62d2864d11f628b1e8b5be13ac2.tar.xz glibc-c42d5e9862d9e62d2864d11f628b1e8b5be13ac2.zip |
Optimize nearbyint{,f} on sparc.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3 nearbyint{,f} to libm-sysdep_routes. * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file. * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file. * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New file. * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file. * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New file. * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file. * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file. * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
Diffstat (limited to 'sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S')
-rw-r--r-- | sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S new file mode 100644 index 0000000000..47da9eaafe --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S @@ -0,0 +1,19 @@ +#include <sparc-ifunc.h> +#include <math_ldbl_opt.h> + +SPARC_ASM_VIS3_IFUNC(nearbyint) + +weak_alias (__nearbyint, nearbyint) + +#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1) +compat_symbol (libm, __nearbyint, nearbyintl, GLIBC_2_1) +#endif + +# 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" |