]> git.ipfire.org Git - thirdparty/glibc.git/commit
[powerpc] libc_feholdsetround_noex_ppc_ctx: optimize FPSCR write
authorPaul A. Clarke <pc@us.ibm.com>
Thu, 19 Sep 2019 16:31:31 +0000 (11:31 -0500)
committerPaul A. Clarke <pc@us.ibm.com>
Fri, 27 Sep 2019 16:01:54 +0000 (11:01 -0500)
commit36c17c7079a5243a890ba43affff326a041775a9
treecba6527c4987bf4fef2c179b1b57beacaf8d73fc
parent81ecb0ee4970865cbe5d1da733c4879b999c528f
[powerpc] libc_feholdsetround_noex_ppc_ctx: optimize FPSCR write

libc_feholdsetround_noex_ppc_ctx currently performs:
1. Read FPSCR, save to context.
2. Create new FPSCR value: clear enables and set new rounding mode.
3. Write new value to FPSCR.

Since other bits just pass through, there is no need to write them.

Instead, write just the changed values (enables and rounding mode),
which can be a bit more efficient.
ChangeLog
sysdeps/powerpc/fpu/fenv_private.h