]> git.ipfire.org Git - thirdparty/glibc.git/commit
[powerpc] get_rounding_mode: utilize faster method to get rounding mode
authorPaul A. Clarke <pc@us.ibm.com>
Fri, 15 Mar 2019 23:04:24 +0000 (19:04 -0400)
committerPaul A. Clarke <pc@us.ibm.com>
Thu, 6 Jun 2019 19:11:56 +0000 (14:11 -0500)
commitde751ebc9efa97ce0115e42bd55fa1beeb614380
tree5dd54e292a36158dba41efd8491908f05365b3f8
parent28dd3939221ab26c6774097e9596e30d9753f758
[powerpc] get_rounding_mode: utilize faster method to get rounding mode

Add support to use 'mffsl' instruction if compiled for POWER9 (or later).

Also, mask the result to avoid bleeding unrelated bits into the result of
_FPU_GET_RC().

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
ChangeLog
sysdeps/powerpc/fpu/get-rounding-mode.h [new file with mode: 0644]
sysdeps/powerpc/fpu_control.h