This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: [PATCH 11/13] AArch64: Cleanup fenv implementation
- From: "Wilco Dijkstra" <wdijkstr at arm dot com>
- To: <marcus dot shawcroft at gmail dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 18 Dec 2014 15:57:46 -0000
- Subject: RE: [PATCH 11/13] AArch64: Cleanup fenv implementation
- Authentication-results: sourceware.org; auth=none
- References:
ping
> -----Original Message-----
> From: Wilco Dijkstra [mailto:wdijkstr@arm.com]
> Sent: 23 October 2014 18:36
> To: 'libc-alpha@sourceware.org'
> Subject: [PATCH 11/13] AArch64: Cleanup fenv implementation
>
> Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality.
>
> ChangeLog:
> 2014-10-23 Wilco Dijkstra <wdijkstr@arm.com>
>
> * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
> Call libc_fetestexcept_aarch64.
>
> ---
> sysdeps/aarch64/fpu/ftestexcept.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/sysdeps/aarch64/fpu/ftestexcept.c b/sysdeps/aarch64/fpu/ftestexcept.c
> index 73e01d4..74e2d0f 100644
> --- a/sysdeps/aarch64/fpu/ftestexcept.c
> +++ b/sysdeps/aarch64/fpu/ftestexcept.c
> @@ -16,17 +16,11 @@
> License along with the GNU C Library; if not, see
> <http://www.gnu.org/licenses/>. */
>
> -#include <fenv.h>
> -#include <fpu_control.h>
> +#include <math_private.h>
>
> int
> fetestexcept (int excepts)
> {
> - fpu_fpsr_t fpsr;
> -
> - /* Get current exceptions. */
> - _FPU_GETFPSR (fpsr);
> -
> - return fpsr & excepts & FE_ALL_EXCEPT;
> + return libc_fetestexcept_aarch64 (excepts);
> }
> libm_hidden_def (fetestexcept)
> --
> 1.9.1