summaryrefslogtreecommitdiff
path: root/include/math.h
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-03-17 20:55:36 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-03-17 20:55:36 +0000
commit0034901c6bfd969a7ac2bcd1dd4afa7e6889bb45 (patch)
treeed9104d12b40cee329904004ce432cbc3e16ca99 /include/math.h
parent066f61917322db898f51616964ef1065e3cecb13 (diff)
Remove #ifdef __vax__ bits
ok deraadt@ tb@ (who had the same diff)
Diffstat (limited to 'include/math.h')
-rw-r--r--include/math.h29
1 files changed, 7 insertions, 22 deletions
diff --git a/include/math.h b/include/math.h
index b13ad5b5bd9..783e5bb37a0 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: math.h,v 1.34 2015/07/19 17:41:49 martynas Exp $ */
+/* $OpenBSD: math.h,v 1.35 2016/03/17 20:55:35 jca Exp $ */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -25,11 +25,11 @@ __BEGIN_DECLS
* ANSI/POSIX
*/
extern char __infinity[];
-#if __GNUC_PREREQ__(3, 3) && !defined(__vax__)
+#if __GNUC_PREREQ__(3, 3)
#define HUGE_VAL __builtin_huge_val()
-#else /* __GNUC_PREREQ__(3, 3) && !__vax__ */
+#else /* __GNUC_PREREQ__(3, 3) */
#define HUGE_VAL (*(double *)(void *)__infinity)
-#endif /* __GNUC_PREREQ__(3, 3) && !__vax__ */
+#endif /* __GNUC_PREREQ__(3, 3) */
/*
* C99
@@ -38,25 +38,18 @@ extern char __infinity[];
typedef __double_t double_t;
typedef __float_t float_t;
-#if __GNUC_PREREQ__(3, 3) && !defined(__vax__)
+#if __GNUC_PREREQ__(3, 3)
#define HUGE_VALF __builtin_huge_valf()
#define HUGE_VALL __builtin_huge_vall()
#define INFINITY __builtin_inff()
#define NAN __builtin_nanf("")
-#else /* __GNUC_PREREQ__(3, 3) && !__vax__ */
-#ifdef __vax__
-extern char __infinityf[];
-#define HUGE_VALF (*(float *)(void *)__infinityf)
-#else /* __vax__ */
+#else /* __GNUC_PREREQ__(3, 3) */
#define HUGE_VALF ((float)HUGE_VAL)
-#endif /* __vax__ */
#define HUGE_VALL ((long double)HUGE_VAL)
#define INFINITY HUGE_VALF
-#ifndef __vax__
extern char __nan[];
#define NAN (*(float *)(void *)__nan)
-#endif /* !__vax__ */
-#endif /* __GNUC_PREREQ__(3, 3) && !__vax__ */
+#endif /* __GNUC_PREREQ__(3, 3) */
#define FP_INFINITE 0x01
#define FP_NAN 0x02
@@ -148,11 +141,7 @@ extern char __nan[];
#define M_SQRT2 ((double)1.41421356237309504880) /* sqrt(2) */
#define M_SQRT1_2 ((double)0.70710678118654752440) /* 1/sqrt(2) */
-#ifdef __vax__
-#define MAXFLOAT ((float)1.70141173319264430e+38)
-#else
#define MAXFLOAT ((float)3.40282346638528860e+38)
-#endif /* __vax__ */
extern int signgam;
#endif /* __BSD_VISIBLE || __XPG_VISIBLE */
@@ -492,10 +481,6 @@ int __isnormall(long double);
int __signbit(double);
int __signbitf(float);
int __signbitl(long double);
-
-#if __BSD_VISIBLE && defined(__vax__)
-double infnan(int);
-#endif /* __BSD_VISIBLE && defined(__vax__) */
__END_DECLS
#endif /* !_MATH_H_ */