]> git.ipfire.org Git - thirdparty/glibc.git/commit
[powerpc] libc_feupdateenv_test: optimize FPSCR access
authorPaul A. Clarke <pc@us.ibm.com>
Thu, 19 Sep 2019 16:18:33 +0000 (11:18 -0500)
committerPaul A. Clarke <pc@us.ibm.com>
Fri, 27 Sep 2019 13:50:48 +0000 (08:50 -0500)
commit7413c188c77adb26a15cf0e98e0a991d09d73c65
tree5c36d2ff3dcff1e0aab3243b81b1176c18805d87
parente3d85df50b083c9ba68a40f5d45b201cbec4e68b
[powerpc] libc_feupdateenv_test: optimize FPSCR access

ROUND_TO_ODD and a couple of other places use libc_feupdateenv_test to
restore the rounding mode and exception enables, preserve exception flags,
and test whether given exception(s) were generated.

If the exception flags haven't changed, then it is sufficient and a bit
more efficient to just restore the rounding mode and enables, rather than
writing the full Floating-Point Status and Control Register (FPSCR).

Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
ChangeLog
sysdeps/powerpc/fpu/fenv_libc.h
sysdeps/powerpc/fpu/fenv_private.h