mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-24 21:08:04 +03:00
Fix fenv.h fallback returns (bug 14027).
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user