diff options
Diffstat (limited to 'sysdeps/s390/fpu/fegetround.c')
-rw-r--r-- | sysdeps/s390/fpu/fegetround.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sysdeps/s390/fpu/fegetround.c b/sysdeps/s390/fpu/fegetround.c index 8e61605bad..847b5d2de5 100644 --- a/sysdeps/s390/fpu/fegetround.c +++ b/sysdeps/s390/fpu/fegetround.c @@ -17,17 +17,12 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <fenv_libc.h> -#include <fpu_control.h> +#include <get-rounding-mode.h> int __fegetround (void) { - fexcept_t cw; - - _FPU_GETCW (cw); - - return cw & FPC_RM_MASK; + return get_rounding_mode (); } libm_hidden_def (__fegetround) weak_alias (__fegetround, fegetround) |