diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-20 19:10:44 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-20 19:10:44 +0000 |
commit | c91e0825251b4f57e8ce1d9d4673bee6e279e0cd (patch) | |
tree | 8ec4d95dc25e260084f23726cbb2cc202ed46e93 /math/fesetround.c | |
parent | bfcacbdec0ea80b12b23f89572c29b87624e76ec (diff) | |
download | glibc-c91e0825251b4f57e8ce1d9d4673bee6e279e0cd.tar.gz glibc-c91e0825251b4f57e8ce1d9d4673bee6e279e0cd.tar.xz glibc-c91e0825251b4f57e8ce1d9d4673bee6e279e0cd.zip |
Avoid spurious failures from <fenv.h> fallback functions (bug 15654).
Diffstat (limited to 'math/fesetround.c')
-rw-r--r-- | math/fesetround.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/fesetround.c b/math/fesetround.c index 0e06217140..1895a20f18 100644 --- a/math/fesetround.c +++ b/math/fesetround.c @@ -22,7 +22,11 @@ int fesetround (int round) { +#ifdef FE_TONEAREST + return (round == FE_TONEAREST) ? 0 : 1; +#else return 1; /* Signal we are unable to set the direction. */ +#endif } libm_hidden_def (fesetround) stub_warning (fesetround) |