Call get_rounding_mode rather than duplicating functionality.
This commit is contained in:
parent
a7b00c1101
commit
8b1af712d1
|
@ -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):
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue