summaryrefslogtreecommitdiff
path: root/math/fegetround.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-20 19:10:44 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-20 19:10:44 +0000
commitc91e0825251b4f57e8ce1d9d4673bee6e279e0cd (patch)
tree8ec4d95dc25e260084f23726cbb2cc202ed46e93 /math/fegetround.c
parentbfcacbdec0ea80b12b23f89572c29b87624e76ec (diff)
downloadglibc-c91e0825251b4f57e8ce1d9d4673bee6e279e0cd.tar.gz
Avoid spurious failures from <fenv.h> fallback functions (bug 15654).
Diffstat (limited to 'math/fegetround.c')
-rw-r--r--math/fegetround.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/fegetround.c b/math/fegetround.c
index deb3c5d02b..24bbd16097 100644
--- a/math/fegetround.c
+++ b/math/fegetround.c
@@ -22,6 +22,10 @@
int
fegetround (void)
{
+#ifdef FE_TONEAREST
+ return FE_TONEAREST;
+#else
return 0;
+#endif
}
stub_warning (fegetround)