diff options
| author | christos <christos@NetBSD.org> | 2015-12-22 14:20:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2015-12-22 14:20:59 +0000 |
| commit | f257fbfbb2ff7db30b99241b897f3a0fd3b245e6 (patch) | |
| tree | a9ad57a5d6cc5fc401e458dfb487620dad9c2cf8 | |
| parent | 12950f1676260c683269db640645e51d4ebfc336 (diff) | |
put have fenv stuff elsewhere.
| -rw-r--r-- | tests/lib/libm/Makefile | 10 | ||||
| -rw-r--r-- | tests/lib/libm/t_fenv.c | 8 |
2 files changed, 5 insertions, 13 deletions
diff --git a/tests/lib/libm/Makefile b/tests/lib/libm/Makefile index d85dbdcd1c8..6090ec3cc6b 100644 --- a/tests/lib/libm/Makefile +++ b/tests/lib/libm/Makefile @@ -1,17 +1,9 @@ -# $NetBSD: Makefile,v 1.34 2015/12/22 08:26:16 martin Exp $ +# $NetBSD: Makefile,v 1.35 2015/12/22 14:20:59 christos Exp $ .include <bsd.own.mk> TESTSDIR= ${TESTSBASE}/lib/libm -.if ${MACHINE_CPU} == "aarch64" || ${MACHINE_CPU} == "arm" \ - || ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "powerpc" \ - || ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \ - || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" \ - || ${MACHINE_ARCH} == "mips" -CPPFLAGS+= -DHAVE_FENV_H -.endif - .if ${MACHINE} == "alpha" COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i .endif diff --git a/tests/lib/libm/t_fenv.c b/tests/lib/libm/t_fenv.c index 08d5c729c78..544503673a9 100644 --- a/tests/lib/libm/t_fenv.c +++ b/tests/lib/libm/t_fenv.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_fenv.c,v 1.2 2014/12/29 19:51:53 martin Exp $ */ +/* $NetBSD: t_fenv.c,v 1.3 2015/12/22 14:20:59 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -29,15 +29,15 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_fenv.c,v 1.2 2014/12/29 19:51:53 martin Exp $"); +__RCSID("$NetBSD: t_fenv.c,v 1.3 2015/12/22 14:20:59 christos Exp $"); #include <atf-c.h> -#ifdef HAVE_FENV_H +#include <fenv.h> +#ifdef __HAVE_FENV #include <ieeefp.h> #include <stdlib.h> -#include <fenv.h> #if __arm__ && !__SOFTFP__ |
