mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Add hidden aliases for fenv.h functions.
Add hidden aliases for fegetenv, feupdateenv, and ftestexcept. This avoids libc needing to go through the PLT for these functions. Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
This commit is contained in:
parent
2ab0965cb0
commit
5ce24e77ed
@ -1,3 +1,9 @@
|
||||
2011-10-20 Carlos O'Donell <carlos@systemhalted.org>
|
||||
|
||||
* sysdeps/hppa/fpu/fegetenv.c: Add hidden alias.
|
||||
* sysdeps/hppa/fpu/feupdateenv.c: Likewise.
|
||||
* sysdeps/hppa/fpu/ftestexcept.c: Likewise.
|
||||
|
||||
2011-10-20 Carlos O'Donell <carlos@systemhalted.org>
|
||||
|
||||
* sysdeps/hppa/dl-tls.h: Update copyright year.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Store current floating-point environment.
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2011 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by David Huggins-Daines <dhd@debian.org>, 2000
|
||||
|
||||
@ -33,3 +33,4 @@ fegetenv (fenv_t *envp)
|
||||
memcpy(envp, buf, sizeof (*envp));
|
||||
return 0;
|
||||
}
|
||||
libm_hidden_def (fegetenv)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Install given floating-point environment and raise exceptions.
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2011 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by David Huggins-Daines <dhd@debian.org>, 2000
|
||||
|
||||
@ -38,3 +38,4 @@ feupdateenv (const fenv_t *envp)
|
||||
/* Success. */
|
||||
return 0;
|
||||
}
|
||||
libm_hidden_def (feupdateenv)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Test exception in current environment.
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2011 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by David Huggins-Daines <dhd@debian.org>, 2000
|
||||
|
||||
@ -32,3 +32,4 @@ fetestexcept (int excepts)
|
||||
|
||||
return (s.sw[0] >> 27) & excepts & FE_ALL_EXCEPT;
|
||||
}
|
||||
libm_hidden_def (fetestexcept)
|
||||
|
Loading…
Reference in New Issue
Block a user