summaryrefslogtreecommitdiff
path: root/regress/lib/libc/cephes/ieetst.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2011-07-03 13:39:08 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2011-07-03 13:39:08 +0000
commitf1b6e5467b3e420e6ab79e15654a38dfdcd41b0c (patch)
treee93140265d1babe6250d50c1dbe34c607ee0a90b /regress/lib/libc/cephes/ieetst.c
parent373de65eb85a3ca3a1c1f24bba37e66b3786d26a (diff)
Include tests of 80-bit long double precision (on platforms that
support it) now that scanf is implemented properly.
Diffstat (limited to 'regress/lib/libc/cephes/ieetst.c')
-rw-r--r--regress/lib/libc/cephes/ieetst.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/regress/lib/libc/cephes/ieetst.c b/regress/lib/libc/cephes/ieetst.c
index fdce864f401..41dfd6a96e5 100644
--- a/regress/lib/libc/cephes/ieetst.c
+++ b/regress/lib/libc/cephes/ieetst.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieetst.c,v 1.1 2011/07/02 18:11:01 martynas Exp $ */
+/* $OpenBSD: ieetst.c,v 1.2 2011/07/03 13:39:07 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
@@ -28,13 +28,18 @@
* last revision: 16 May 92
*/
+#include <float.h>
#include <stdio.h>
#include "mconf.h"
#include "ehead.h"
/* Include tests of 80-bit long double precision: */
+#if LDBL_MANT_DIG == 64
+#define LDOUBLE 1
+#else /* LDBL_MANT_DIG == 64 */
#define LDOUBLE 0
+#endif /* LDBL_MANT_DIG == 64 */
/* Abort subtest after getting this many errors: */
#define MAXERR 5
/* Number of random arguments to try (set as large as you have