diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/arch/vax/gen/fpclassify.c | 11 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/frexp.c | 13 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/isfinite.c | 13 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/isinf.c | 13 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/isnan.c | 13 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/isnormal.c | 11 | ||||
-rw-r--r-- | lib/libc/arch/vax/gen/signbit.c | 11 | ||||
-rw-r--r-- | lib/libc/gen/isinf.c | 4 |
8 files changed, 58 insertions, 31 deletions
diff --git a/lib/libc/arch/vax/gen/fpclassify.c b/lib/libc/arch/vax/gen/fpclassify.c index eaba629f981..c1ee38f3b4f 100644 --- a/lib/libc/arch/vax/gen/fpclassify.c +++ b/lib/libc/arch/vax/gen/fpclassify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpclassify.c,v 1.3 2008/12/10 01:15:02 martynas Exp $ */ +/* $OpenBSD: fpclassify.c,v 1.4 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> #include <machine/vaxfp.h> #include <math.h> @@ -43,6 +45,9 @@ __fpclassifyf(float f) return FP_NORMAL; } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __fpclassifyl(long double); +#else /* lint */ __weak_alias(__fpclassifyl, __fpclassify); -#endif /* __weak_alias */ +#endif /* lint */ diff --git a/lib/libc/arch/vax/gen/frexp.c b/lib/libc/arch/vax/gen/frexp.c index bf3ce08f3a7..1ddf094c270 100644 --- a/lib/libc/arch/vax/gen/frexp.c +++ b/lib/libc/arch/vax/gen/frexp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frexp.c,v 1.7 2008/12/10 01:15:02 martynas Exp $ */ +/* $OpenBSD: frexp.c,v 1.8 2011/07/02 19:27:34 martynas Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -28,6 +28,8 @@ * SUCH DAMAGE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> #include <sys/types.h> #include <math.h> @@ -59,8 +61,9 @@ frexp(value, eptr) } } -#if LDBL_MANT_DIG == 53 -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +long double frexpl(long double, int *); +#else /* lint */ __weak_alias(frexpl, frexp); -#endif /* __weak_alias */ -#endif /* LDBL_MANT_DIG == 53 */ +#endif /* lint */ diff --git a/lib/libc/arch/vax/gen/isfinite.c b/lib/libc/arch/vax/gen/isfinite.c index 3fb7b67f527..809a768d1c6 100644 --- a/lib/libc/arch/vax/gen/isfinite.c +++ b/lib/libc/arch/vax/gen/isfinite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isfinite.c,v 1.3 2008/12/10 01:15:02 martynas Exp $ */ +/* $OpenBSD: isfinite.c,v 1.4 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> #include <math.h> @@ -32,14 +34,15 @@ __isfinitef(float f) return(1); } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __isfinitel(long double); +#else /* lint */ __weak_alias(__isfinitel, __isfinite); -#endif /* __weak_alias */ +#endif /* lint */ /* * 3BSD compatibility aliases. */ -#ifdef __weak_alias __weak_alias(finite, __isfinite); __weak_alias(finitef, __isfinitef); -#endif /* __weak_alias */ diff --git a/lib/libc/arch/vax/gen/isinf.c b/lib/libc/arch/vax/gen/isinf.c index 636e7983da4..41c1d87d232 100644 --- a/lib/libc/arch/vax/gen/isinf.c +++ b/lib/libc/arch/vax/gen/isinf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isinf.c,v 1.11 2008/12/12 23:44:37 martynas Exp $ */ +/* $OpenBSD: isinf.c,v 1.12 2011/07/02 19:27:34 martynas Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -29,6 +29,8 @@ * SUCH DAMAGE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> /* ARGSUSED */ @@ -45,14 +47,15 @@ __isinff(float f) return(0); } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __isinfl(long double); +#else /* lint */ __weak_alias(__isinfl, __isinf); -#endif /* __weak_alias */ +#endif /* lint */ /* * 3BSD compatibility aliases. */ -#ifdef __weak_alias __weak_alias(isinf, __isinf); __weak_alias(isinff, __isinff); -#endif /* __weak_alias */ diff --git a/lib/libc/arch/vax/gen/isnan.c b/lib/libc/arch/vax/gen/isnan.c index 1b33ca64234..1e92c33a28e 100644 --- a/lib/libc/arch/vax/gen/isnan.c +++ b/lib/libc/arch/vax/gen/isnan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isnan.c,v 1.5 2008/12/12 23:44:37 martynas Exp $ */ +/* $OpenBSD: isnan.c,v 1.6 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> /* ARGSUSED */ @@ -31,14 +33,15 @@ __isnanf(float f) return(0); } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __isnanl(long double); +#else /* lint */ __weak_alias(__isnanl, __isnan); -#endif /* __weak_alias */ +#endif /* lint */ /* * 3BSD compatibility aliases. */ -#ifdef __weak_alias __weak_alias(isnan, __isnan); __weak_alias(isnanf, __isnanf); -#endif /* __weak_alias */ diff --git a/lib/libc/arch/vax/gen/isnormal.c b/lib/libc/arch/vax/gen/isnormal.c index 1c8070ceaf9..1bdafb246af 100644 --- a/lib/libc/arch/vax/gen/isnormal.c +++ b/lib/libc/arch/vax/gen/isnormal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isnormal.c,v 1.3 2008/12/10 01:15:02 martynas Exp $ */ +/* $OpenBSD: isnormal.c,v 1.4 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> #include <machine/vaxfp.h> #include <math.h> @@ -35,6 +37,9 @@ __isnormalf(float f) return (p->fflt_exp != 0); } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __isnormall(long double); +#else /* lint */ __weak_alias(__isnormall, __isnormal); -#endif /* __weak_alias */ +#endif /* lint */ diff --git a/lib/libc/arch/vax/gen/signbit.c b/lib/libc/arch/vax/gen/signbit.c index 29bf4c6eef9..e5a47f804b6 100644 --- a/lib/libc/arch/vax/gen/signbit.c +++ b/lib/libc/arch/vax/gen/signbit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signbit.c,v 1.3 2008/12/10 01:15:02 martynas Exp $ */ +/* $OpenBSD: signbit.c,v 1.4 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +/* LINTLIBRARY */ + #include <sys/cdefs.h> #include <machine/vaxfp.h> #include <math.h> @@ -35,6 +37,9 @@ __signbitf(float f) return p->fflt_sign; } -#ifdef __weak_alias +#ifdef lint +/* PROTOLIB1 */ +int __signbitl(long double); +#else /* lint */ __weak_alias(__signbitl, __signbit); -#endif /* __weak_alias */ +#endif /* lint */ diff --git a/lib/libc/gen/isinf.c b/lib/libc/gen/isinf.c index 167636bb094..dbcde156dd3 100644 --- a/lib/libc/gen/isinf.c +++ b/lib/libc/gen/isinf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isinf.c,v 1.5 2011/05/30 17:28:15 martynas Exp $ */ +/* $OpenBSD: isinf.c,v 1.6 2011/07/02 19:27:34 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -45,7 +45,7 @@ __isinff(float f) int __isinfl(long double); #else /* lint */ __weak_alias(__isinfl, __isinf); -#endif /* __weak_alias */ +#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ /* |