mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO.
2014-06-24 Wilco <wdijkstr@arm.com> * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define. * sysdeps/arm/fenv_private.h (libc_fesetround_vfp) (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp) (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx) (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM. * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM. * sysdeps/arm/get-rounding-mode.h (get_rounding_mode): Use _FPU_MASK_RM.
This commit is contained in:
@@ -36,7 +36,7 @@ get_rounding_mode (void)
|
||||
return FE_TONEAREST;
|
||||
|
||||
_FPU_GETCW (fpscr);
|
||||
return fpscr & FE_TOWARDZERO;
|
||||
return fpscr & _FPU_MASK_RM;
|
||||
}
|
||||
|
||||
#endif /* get-rounding-mode.h */
|
||||
|
||||
Reference in New Issue
Block a user