mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
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>
|
||||
|
||||
* sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
|
||||
|
@ -17,13 +17,11 @@
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <fenv.h>
|
||||
#include <fpu_control.h>
|
||||
#include <get-rounding-mode.h>
|
||||
|
||||
int
|
||||
fegetround (void)
|
||||
{
|
||||
fpu_control_t fpcr;
|
||||
_FPU_GETCW (fpcr);
|
||||
return fpcr & FE_TOWARDZERO;
|
||||
return get_rounding_mode ();
|
||||
}
|
||||
libm_hidden_def (fegetround)
|
||||
|
Loading…
Reference in New Issue
Block a user