Call get_rounding_mode rather than duplicating functionality.

This commit is contained in:
Wilco Dijkstra 2014-10-24 13:19:24 +00:00
parent a7b00c1101
commit 8b1af712d1
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
* sysdeps/aarch64/fpu/fegetround.c (fegetround):
Call get_rounding_mode.
2014-10-24 Wilco Dijkstra <wdijkstr@arm.com> 2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
* sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):

View File

@ -17,13 +17,11 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv.h> #include <fenv.h>
#include <fpu_control.h> #include <get-rounding-mode.h>
int int
fegetround (void) fegetround (void)
{ {
fpu_control_t fpcr; return get_rounding_mode ();
_FPU_GETCW (fpcr);
return fpcr & FE_TOWARDZERO;
} }
libm_hidden_def (fegetround) libm_hidden_def (fegetround)