]> sourceware.org Git - glibc.git/commit
powerpc: consolidate rint
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 8 Mar 2019 20:26:36 +0000 (20:26 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 12 Jun 2019 14:46:22 +0000 (11:46 -0300)
commit21bd039bb41a59cdbd6c93670433e3b473720653
tree4047dcc470c90f96a12f8b2d3e43e726da1f3e8d
parentcfa611447b44d2fa1cb3d8f853b6f3f75ade366a
powerpc: consolidate rint

This patches consolidates all the powerpc rint{f} implementations on
the generic sysdeps/powerpc/fpu/s_rint{f}.

Checked on powerpc-linux-gnu (built without --with-cpu, with
--with-cpu=power4 and with --with-cpu=power5+ and --disable-multi-arch),
powerpc64-linux-gnu (built without --with-cp and with --with-cpu=power5+
and --disable-multi-arch).

* sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
round_to_integer_float, round_mode): Add RINT handling.
(reset_fenv_mode): New symbol.
* sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
* sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
* sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
* sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
* sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
ChangeLog
sysdeps/powerpc/fpu/round_to_integer.h
sysdeps/powerpc/fpu/s_rint.c
sysdeps/powerpc/fpu/s_rintf.c
sysdeps/powerpc/powerpc32/fpu/s_rint.S [deleted file]
sysdeps/powerpc/powerpc32/fpu/s_rintf.S [deleted file]
sysdeps/powerpc/powerpc64/fpu/s_rint.S [deleted file]
sysdeps/powerpc/powerpc64/fpu/s_rintf.S [deleted file]
This page took 0.044669 seconds and 5 git commands to generate.