sparc: refactor sparc64 rint{f} selector to C
commit21bfcc3d245734618f4fcb710b91c41b1483975b
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 13 Oct 2017 16:42:07 +0000 (13 13:42 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Nov 2017 18:22:21 +0000 (29 16:22 -0200)
tree01201c75ecc9026b90840b1cffee595a5e872825
parent522228ddeae7b5cfb76332f80d2c0dfdb7055d4c
sparc: refactor sparc64 rint{f} selector to C

This patch refactors the sparc64 ifunc selector to a C implementation.
Also, the generic symbol is moved to its own implementation file
s_rint{f}-generic.S).

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

* sysdeps/sparc/sparc64/fpu/multiarch/Makefile
(libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
objects.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/sparc/sparc64/fpu/multiarch/Makefile
sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S [new file with mode: 0644]
sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S [deleted file]
sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c [new file with mode: 0644]
sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S [new file with mode: 0644]
sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S [deleted file]
sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c [new file with mode: 0644]