aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-27 13:54:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-27 13:54:09 +0000
commit6ad3493e2247e6cb3c9e086e8cb1f8b51a5f27d6 (patch)
treea76d1eac1389644afd1d05dcc26917746235b931 /math
parent5aeb141a565d0b2289b6036b079ee26ebdac0e94 (diff)
downloadglibc-6ad3493e2247e6cb3c9e086e8cb1f8b51a5f27d6.zip
glibc-6ad3493e2247e6cb3c9e086e8cb1f8b51a5f27d6.tar.gz
glibc-6ad3493e2247e6cb3c9e086e8cb1f8b51a5f27d6.tar.bz2
Fix fenv.h fallback returns (bug 14027).
Diffstat (limited to 'math')
-rw-r--r--math/fclrexcpt.c6
-rw-r--r--math/fraiseexcpt.c6
-rw-r--r--math/fsetexcptflg.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/math/fclrexcpt.c b/math/fclrexcpt.c
index 27e9bd0..dcdcfbb 100644
--- a/math/fclrexcpt.c
+++ b/math/fclrexcpt.c
@@ -1,5 +1,5 @@
/* Clear given exceptions in current floating-point environment.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -23,8 +23,8 @@
int
__feclearexcept (int excepts)
{
- /* This always fails. */
- return 1;
+ /* This always fails unless nothing needs to be done. */
+ return (excepts != 0);
}
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feclearexcept, __old_feclearexcept)
diff --git a/math/fraiseexcpt.c b/math/fraiseexcpt.c
index cb752df..83a488b 100644
--- a/math/fraiseexcpt.c
+++ b/math/fraiseexcpt.c
@@ -1,5 +1,5 @@
/* Raise given exceptions.
- Copyright (C) 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -23,8 +23,8 @@
int
__feraiseexcept (int excepts)
{
- /* This always fails. */
- return 1;
+ /* This always fails unless nothing needs to be done. */
+ return (excepts != 0);
}
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feraiseexcept, __old_feraiseexcept)
diff --git a/math/fsetexcptflg.c b/math/fsetexcptflg.c
index 3f6ac98..7d27d7f 100644
--- a/math/fsetexcptflg.c
+++ b/math/fsetexcptflg.c
@@ -1,5 +1,5 @@
/* Set floating-point environment exception handling.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -23,8 +23,8 @@
int
__fesetexceptflag (const fexcept_t *flagp, int excepts)
{
- /* This always fails. */
- return 1;
+ /* This always fails unless nothing needs to be done. */
+ return (excepts != 0);
}
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetexceptflag, __old_fesetexceptflag)