diff options
author | 2013-01-13 03:44:59 +0000 | |
---|---|---|
committer | 2013-01-13 03:44:59 +0000 | |
commit | bec2cc9ed0f86f0319e7da7794f847fd97d09187 (patch) | |
tree | fbe022f5be3c714a8784e62303796d9ec08776c1 | |
parent | sync (diff) | |
download | wireguard-openbsd-bec2cc9ed0f86f0319e7da7794f847fd97d09187.tar.xz wireguard-openbsd-bec2cc9ed0f86f0319e7da7794f847fd97d09187.zip |
Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB,
and a few empty files for lint to chew on.
89 files changed, 47 insertions, 671 deletions
diff --git a/lib/libm/arch/amd64/invtrig.c b/lib/libm/arch/amd64/invtrig.c index f0f84bcca36..7e9a553db84 100644 --- a/lib/libm/arch/amd64/invtrig.c +++ b/lib/libm/arch/amd64/invtrig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: invtrig.c,v 1.2 2011/05/31 21:08:29 martynas Exp $ */ +/* $OpenBSD: invtrig.c,v 1.3 2013/01/13 03:44:59 martynas Exp $ */ /*- * Copyright (c) 2008 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -27,8 +27,6 @@ #include <stdint.h> -#ifndef lint - #define STRUCT_DECLS #include "invtrig.h" @@ -84,5 +82,3 @@ const LONGDOUBLE aT[] = { const LONGDOUBLE pi_lo = { 0xece675d1fc8f8cbbULL, 0xbfbeU }; /* -5.01655761266833202345e-20L */ - -#endif /* !lint */ diff --git a/lib/libm/arch/hppa/e_sqrt.c b/lib/libm/arch/hppa/e_sqrt.c index 0646682c099..1e0e2bfbbde 100644 --- a/lib/libm/arch/hppa/e_sqrt.c +++ b/lib/libm/arch/hppa/e_sqrt.c @@ -2,8 +2,6 @@ * Written by Michael Shalayeff. Public Domain */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -14,9 +12,4 @@ sqrt(double x) return (x); } -#ifdef lint -/* PROTOLIB1 */ -long double sqrtl(long double); -#else /* lint */ __weak_alias(sqrtl, sqrt); -#endif /* lint */ diff --git a/lib/libm/arch/hppa/s_rint.c b/lib/libm/arch/hppa/s_rint.c index e87de8df0f3..7049fc263c4 100644 --- a/lib/libm/arch/hppa/s_rint.c +++ b/lib/libm/arch/hppa/s_rint.c @@ -2,8 +2,6 @@ * Written by Michael Shalayeff. Public Domain */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -15,9 +13,4 @@ rint(double x) return (x); } -#ifdef lint -/* PROTOLIB1 */ -long double rintl(long double); -#else /* lint */ __weak_alias(rintl, rint); -#endif /* lint */ diff --git a/lib/libm/arch/i387/invtrig.c b/lib/libm/arch/i387/invtrig.c index f0f84bcca36..7e9a553db84 100644 --- a/lib/libm/arch/i387/invtrig.c +++ b/lib/libm/arch/i387/invtrig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: invtrig.c,v 1.2 2011/05/31 21:08:29 martynas Exp $ */ +/* $OpenBSD: invtrig.c,v 1.3 2013/01/13 03:44:59 martynas Exp $ */ /*- * Copyright (c) 2008 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -27,8 +27,6 @@ #include <stdint.h> -#ifndef lint - #define STRUCT_DECLS #include "invtrig.h" @@ -84,5 +82,3 @@ const LONGDOUBLE aT[] = { const LONGDOUBLE pi_lo = { 0xece675d1fc8f8cbbULL, 0xbfbeU }; /* -5.01655761266833202345e-20L */ - -#endif /* !lint */ diff --git a/lib/libm/arch/sh/e_sqrt.c b/lib/libm/arch/sh/e_sqrt.c index ca61513734e..473d04a85a9 100644 --- a/lib/libm/arch/sh/e_sqrt.c +++ b/lib/libm/arch/sh/e_sqrt.c @@ -1,11 +1,9 @@ -/* $OpenBSD: e_sqrt.c,v 1.3 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: e_sqrt.c,v 1.4 2013/01/13 03:44:59 martynas Exp $ */ /* * Written by Martynas Venckus. Public domain */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <math.h> @@ -34,10 +32,4 @@ sqrt(double d) return (d); } -/* No extended-precision is present. */ -#ifdef lint -/* PROTOLIB1 */ -long double sqrtl(long double); -#else /* lint */ __weak_alias(sqrtl,sqrt); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_asincos.c b/lib/libm/noieee_src/n_asincos.c index b468841e9c9..13d94601f97 100644 --- a/lib/libm/noieee_src/n_asincos.c +++ b/lib/libm/noieee_src/n_asincos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_asincos.c,v 1.12 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_asincos.c,v 1.13 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_asincos.c,v 1.1 1995/10/10 23:36:34 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -81,8 +81,6 @@ * 1.99 ulps. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -103,13 +101,7 @@ asin(double x) } -#ifdef lint -/* PROTOLIB1 */ -long double asinl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(asinl, asin); -#endif /* lint */ /* ACOS(X) * RETURNS ARC COS OF X @@ -178,10 +170,4 @@ acos(double x) return(t+t); } -#ifdef lint -/* PROTOLIB1 */ -long double acosl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(acosl, acos); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_atan.c b/lib/libm/noieee_src/n_atan.c index e0cb8491337..95033d5d576 100644 --- a/lib/libm/noieee_src/n_atan.c +++ b/lib/libm/noieee_src/n_atan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_atan.c,v 1.10 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_atan.c,v 1.11 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_atan.c,v 1.1 1995/10/10 23:36:36 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -73,8 +73,6 @@ * 0.85 ulps. */ -/* LINTLIBRARY */ - #include <math.h> double @@ -84,9 +82,4 @@ atan(double x) return(atan2(x,one)); } -#ifdef lint -/* PROTOLIB1 */ -long double atanl(long double); -#else /* lint */ __weak_alias(atanl, atan); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_atan2.c b/lib/libm/noieee_src/n_atan2.c index 510d08e11fc..14d557090da 100644 --- a/lib/libm/noieee_src/n_atan2.c +++ b/lib/libm/noieee_src/n_atan2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_atan2.c,v 1.15 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_atan2.c,v 1.16 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_atan2.c,v 1.1 1995/10/10 23:36:37 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -103,8 +103,6 @@ * shown. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -240,9 +238,4 @@ begin: return(copysign((signx>zero)?z:PI-z,signy)); } -#ifdef lint -/* PROTOLIB1 */ -long double atan2l(long double, long double); -#else /* lint */ __weak_alias(atan2l, atan2); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_fdim.c b/lib/libm/noieee_src/n_fdim.c index 683f5e73a66..6b982987d8d 100644 --- a/lib/libm/noieee_src/n_fdim.c +++ b/lib/libm/noieee_src/n_fdim.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_fdim.c,v 1.5 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_fdim.c,v 1.6 2013/01/13 03:44:59 martynas Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> #define DECL(type, fn) \ @@ -43,9 +41,4 @@ fn(type x, type y) \ DECL(double, fdim) DECL(float, fdimf) -#ifdef lint -/* PROTOLIB1 */ -long double fdiml(long double, long double); -#else /* lint */ -__weak_alias(fdiml, fdim); -#endif /* lint */ +DECL(long double, fdiml) diff --git a/lib/libm/noieee_src/n_floor.c b/lib/libm/noieee_src/n_floor.c index b591843618c..4aa35114d63 100644 --- a/lib/libm/noieee_src/n_floor.c +++ b/lib/libm/noieee_src/n_floor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_floor.c,v 1.15 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_floor.c,v 1.16 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_floor.c,v 1.1 1995/10/10 23:36:48 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -29,8 +29,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -115,9 +113,4 @@ rint(double x) return (t - s); } -#ifdef lint -/* PROTOLIB1 */ -long double rintl(long double); -#else /* lint */ __weak_alias(rintl, rint); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_fmax.c b/lib/libm/noieee_src/n_fmax.c index ba6101c0afa..8d1705890be 100644 --- a/lib/libm/noieee_src/n_fmax.c +++ b/lib/libm/noieee_src/n_fmax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_fmax.c,v 1.5 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_fmax.c,v 1.6 2013/01/13 03:44:59 martynas Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> double @@ -48,9 +46,4 @@ fmax(double x, double y) return (x > y ? x : y); } -#ifdef lint -/* PROTOLIB1 */ -long double fmaxl(long double, long double); -#else /* lint */ __weak_alias(fmaxl, fmax); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_fmin.c b/lib/libm/noieee_src/n_fmin.c index 251a40e6d22..a4f0212d7b0 100644 --- a/lib/libm/noieee_src/n_fmin.c +++ b/lib/libm/noieee_src/n_fmin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_fmin.c,v 1.5 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_fmin.c,v 1.6 2013/01/13 03:44:59 martynas Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> double @@ -48,9 +46,4 @@ fmin(double x, double y) return (x < y ? x : y); } -#ifdef lint -/* PROTOLIB1 */ -long double fminl(long double, long double); -#else /* lint */ __weak_alias(fminl, fmin); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_sincos.c b/lib/libm/noieee_src/n_sincos.c index f2977c8c945..2e8eba0b1a0 100644 --- a/lib/libm/noieee_src/n_sincos.c +++ b/lib/libm/noieee_src/n_sincos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_sincos.c,v 1.11 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_sincos.c,v 1.12 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_sincos.c,v 1.1 1995/10/10 23:37:04 ragge Exp $ */ /* * Copyright (c) 1987, 1993 @@ -29,8 +29,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -64,13 +62,7 @@ sin(double x) return x+x*sin__S(x*x); } -#ifdef lint -/* PROTOLIB1 */ -long double sinl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(sinl, sin); -#endif /* lint */ double cos(double x) @@ -102,10 +94,4 @@ cos(double x) return copysign(a,s); } -#ifdef lint -/* PROTOLIB1 */ -long double cosl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(cosl, cos); -#endif /* lint */ diff --git a/lib/libm/noieee_src/n_support.c b/lib/libm/noieee_src/n_support.c index 5feaee90949..92ba473aa58 100644 --- a/lib/libm/noieee_src/n_support.c +++ b/lib/libm/noieee_src/n_support.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_support.c,v 1.20 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_support.c,v 1.21 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_support.c,v 1.1 1995/10/10 23:37:06 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -64,8 +64,6 @@ * REVISED BY K.C. NG on 1/22/85, 2/13/85, 3/24/85. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -118,13 +116,7 @@ scalbn(double x, int N) return(x); } -#ifdef lint -/* PROTOLIB1 */ -long double scalbnl(long double, int); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(scalbnl, scalbn); -#endif /* lint */ double copysign(double x, double y) @@ -140,13 +132,7 @@ copysign(double x, double y) return(x); } -#ifdef lint -/* PROTOLIB1 */ -long double copysignl(long double, long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(copysignl, copysign); -#endif /* lint */ double logb(double x) @@ -171,13 +157,7 @@ logb(double x) #endif /* defined(__vax__) */ } -#ifdef lint -/* PROTOLIB1 */ -long double logbl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(logbl, logb); -#endif /* lint */ double remainder(double x, double p) @@ -328,13 +308,7 @@ sqrt(double x) end: return(scalbn(q,n)); } -#ifdef lint -/* PROTOLIB1 */ -long double sqrtl(long double); -/* PROTOLIB0 */ -#else /* lint */ __weak_alias(sqrtl, sqrt); -#endif /* lint */ #if 0 /* REMAINDER(X,Y) diff --git a/lib/libm/noieee_src/n_tan.c b/lib/libm/noieee_src/n_tan.c index 88ffb3cfc19..731d2b7f1d8 100644 --- a/lib/libm/noieee_src/n_tan.c +++ b/lib/libm/noieee_src/n_tan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_tan.c,v 1.11 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: n_tan.c,v 1.12 2013/01/13 03:44:59 martynas Exp $ */ /* $NetBSD: n_tan.c,v 1.1 1995/10/10 23:37:07 ragge Exp $ */ /* * Copyright (c) 1987, 1993 @@ -29,8 +29,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <math.h> #include "mathimpl.h" @@ -67,9 +65,4 @@ tan(double x) return c/(x+x*ss); /* ... cos/sin */ } -#ifdef lint -/* PROTOLIB1 */ -long double tanl(long double); -#else /* lint */ __weak_alias(tanl, tan); -#endif /* lint */ diff --git a/lib/libm/src/b_tgamma.c b/lib/libm/src/b_tgamma.c index 725e0257492..96c2881ba1b 100644 --- a/lib/libm/src/b_tgamma.c +++ b/lib/libm/src/b_tgamma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: b_tgamma.c,v 1.5 2012/12/05 23:20:03 deraadt Exp $ */ +/* $OpenBSD: b_tgamma.c,v 1.6 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -28,8 +28,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - /* * This code by P. McIlroy, Oct 1992; * @@ -336,10 +334,5 @@ neg_gam(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double tgammal(long double); -#else /* lint */ __weak_alias(tgammal, tgamma); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_acos.c b/lib/libm/src/e_acos.c index 5f86741365a..7c9c0205301 100644 --- a/lib/libm/src/e_acos.c +++ b/lib/libm/src/e_acos.c @@ -34,8 +34,6 @@ * Function needed: sqrt */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -103,10 +101,5 @@ acos(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double acosl(long double); -#else /* lint */ __weak_alias(acosl, acos); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_acosh.c b/lib/libm/src/e_acosh.c index 159c6379f46..67ea0d576bd 100644 --- a/lib/libm/src/e_acosh.c +++ b/lib/libm/src/e_acosh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* acosh(x) * Method : * Based on @@ -61,10 +59,5 @@ acosh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double acoshl(long double); -#else /* lint */ __weak_alias(acoshl, acosh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_asin.c b/lib/libm/src/e_asin.c index d6134c49a30..e18ac5a8045 100644 --- a/lib/libm/src/e_asin.c +++ b/lib/libm/src/e_asin.c @@ -40,8 +40,6 @@ * */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -111,10 +109,5 @@ asin(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double asinl(long double); -#else /* lint */ __weak_alias(asinl, asin); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_atan2.c b/lib/libm/src/e_atan2.c index f1f0ad1d22c..ffe2b29284b 100644 --- a/lib/libm/src/e_atan2.c +++ b/lib/libm/src/e_atan2.c @@ -37,8 +37,6 @@ * to produce the hexadecimal values shown. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -122,10 +120,5 @@ atan2(double y, double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double atan2l(long double, long double); -#else /* lint */ __weak_alias(atan2l, atan2); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_atanh.c b/lib/libm/src/e_atanh.c index 24b097f33e1..43cf37ecbb2 100644 --- a/lib/libm/src/e_atanh.c +++ b/lib/libm/src/e_atanh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* atanh(x) * Method : * 1.Reduced x to positive by atanh(-x) = -atanh(x) @@ -61,10 +59,5 @@ atanh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double atanhl(long double); -#else /* lint */ __weak_alias(atanhl, atanh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_cosh.c b/lib/libm/src/e_cosh.c index d316b73cad2..43f48f0b898 100644 --- a/lib/libm/src/e_cosh.c +++ b/lib/libm/src/e_cosh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* cosh(x) * Method : * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2 @@ -85,10 +83,5 @@ cosh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double coshl(long double); -#else /* lint */ __weak_alias(coshl, cosh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_exp.c b/lib/libm/src/e_exp.c index 432855fbaf6..60d138fc9fc 100644 --- a/lib/libm/src/e_exp.c +++ b/lib/libm/src/e_exp.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* exp(x) * Returns the exponential of x. * @@ -159,10 +157,5 @@ exp(double x) /* default IEEE double exp */ } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double expl(long double); -#else /* lint */ __weak_alias(expl, exp); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_fmod.c b/lib/libm/src/e_fmod.c index ebda40a9fa3..ae15b89c6ca 100644 --- a/lib/libm/src/e_fmod.c +++ b/lib/libm/src/e_fmod.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* * fmod(x,y) * Return x mod y in exact arithmetic @@ -132,10 +130,5 @@ fmod(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double fmodl(long double, long double); -#else /* lint */ __weak_alias(fmodl, fmod); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_hypot.c b/lib/libm/src/e_hypot.c index 3f15b8a54e5..312d66a245c 100644 --- a/lib/libm/src/e_hypot.c +++ b/lib/libm/src/e_hypot.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* hypot(x,y) * * Method : @@ -124,10 +122,5 @@ hypot(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double hypotl(long double, long double); -#else /* lint */ __weak_alias(hypotl, hypot); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_log.c b/lib/libm/src/e_log.c index 8a7049e2aa0..855da801103 100644 --- a/lib/libm/src/e_log.c +++ b/lib/libm/src/e_log.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* log(x) * Return the logarithm of x * @@ -134,10 +132,5 @@ log(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double logl(long double); -#else /* lint */ __weak_alias(logl, log); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_log10.c b/lib/libm/src/e_log10.c index 291c34e2141..081dd2670b5 100644 --- a/lib/libm/src/e_log10.c +++ b/lib/libm/src/e_log10.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* log10(x) * Return the base 10 logarithm of x * @@ -86,10 +84,5 @@ log10(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double log10l(long double); -#else /* lint */ __weak_alias(log10l, log10); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_log2.c b/lib/libm/src/e_log2.c index 9692e61edb9..ed0b08adb99 100644 --- a/lib/libm/src/e_log2.c +++ b/lib/libm/src/e_log2.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -78,10 +76,5 @@ log2(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double log2l(long double); -#else /* lint */ __weak_alias(log2l, log2); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_pow.c b/lib/libm/src/e_pow.c index 59a885ce2d5..14db64ce5a9 100644 --- a/lib/libm/src/e_pow.c +++ b/lib/libm/src/e_pow.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* pow(x,y) return x**y * * n @@ -301,10 +299,5 @@ pow(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double powl(long double, long double); -#else /* lint */ __weak_alias(powl, pow); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_remainder.c b/lib/libm/src/e_remainder.c index e25590afa0b..661bbbf54f8 100644 --- a/lib/libm/src/e_remainder.c +++ b/lib/libm/src/e_remainder.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* remainder(x,p) * Return : * returns x REM p = x - [x/p]*p as if in infinite @@ -72,10 +70,5 @@ remainder(double x, double p) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double remainderl(long double, long double); -#else /* lint */ __weak_alias(remainderl, remainder); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_sinh.c b/lib/libm/src/e_sinh.c index 91bd7c383ca..5ddd5c6ab88 100644 --- a/lib/libm/src/e_sinh.c +++ b/lib/libm/src/e_sinh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* sinh(x) * Method : * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2 @@ -78,10 +76,5 @@ sinh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double sinhl(long double); -#else /* lint */ __weak_alias(sinhl, sinh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/e_sqrt.c b/lib/libm/src/e_sqrt.c index 22361dcf2bb..c7497a30148 100644 --- a/lib/libm/src/e_sqrt.c +++ b/lib/libm/src/e_sqrt.c @@ -80,8 +80,6 @@ *--------------- */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -444,10 +442,5 @@ B. sqrt(x) by Reciproot Iteration */ #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double sqrtl(long double); -#else /* lint */ __weak_alias(sqrtl, sqrt); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/n_argred.c b/lib/libm/src/n_argred.c deleted file mode 100644 index 5f30645ff6e..00000000000 --- a/lib/libm/src/n_argred.c +++ /dev/null @@ -1 +0,0 @@ -/* empty file for lint to chew on */ diff --git a/lib/libm/src/n_infnan.c b/lib/libm/src/n_infnan.c deleted file mode 100644 index 5f30645ff6e..00000000000 --- a/lib/libm/src/n_infnan.c +++ /dev/null @@ -1 +0,0 @@ -/* empty file for lint to chew on */ diff --git a/lib/libm/src/n_sincos.c b/lib/libm/src/n_sincos.c deleted file mode 100644 index 5f30645ff6e..00000000000 --- a/lib/libm/src/n_sincos.c +++ /dev/null @@ -1 +0,0 @@ -/* empty file for lint to chew on */ diff --git a/lib/libm/src/n_sqrt.c b/lib/libm/src/n_sqrt.c deleted file mode 100644 index 5f30645ff6e..00000000000 --- a/lib/libm/src/n_sqrt.c +++ /dev/null @@ -1 +0,0 @@ -/* empty file for lint to chew on */ diff --git a/lib/libm/src/n_tan.c b/lib/libm/src/n_tan.c deleted file mode 100644 index 5f30645ff6e..00000000000 --- a/lib/libm/src/n_tan.c +++ /dev/null @@ -1 +0,0 @@ -/* empty file for lint to chew on */ diff --git a/lib/libm/src/s_asinh.c b/lib/libm/src/s_asinh.c index 068aebeba63..00988e2cff8 100644 --- a/lib/libm/src/s_asinh.c +++ b/lib/libm/src/s_asinh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* asinh(x) * Method : * Based on @@ -57,10 +55,5 @@ asinh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double asinhl(long double); -#else /* lint */ __weak_alias(asinhl, asinh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_atan.c b/lib/libm/src/s_atan.c index fe55bd5b4c7..d787381f625 100644 --- a/lib/libm/src/s_atan.c +++ b/lib/libm/src/s_atan.c @@ -30,8 +30,6 @@ * to produce the hexadecimal values shown. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -119,10 +117,5 @@ atan(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double atanl(long double); -#else /* lint */ __weak_alias(atanl, atan); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cabs.c b/lib/libm/src/s_cabs.c index ab3ea9c76c3..709c8839e20 100644 --- a/lib/libm/src/s_cabs.c +++ b/lib/libm/src/s_cabs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cabs.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cabs.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -28,10 +26,5 @@ cabs(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double cabsl(long double complex); -#else /* lint */ __weak_alias(cabsl, cabs); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cacos.c b/lib/libm/src/s_cacos.c index b1cc86c439d..91030734d92 100644 --- a/lib/libm/src/s_cacos.c +++ b/lib/libm/src/s_cacos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cacos.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cacos.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* cacos() * * Complex circular arc cosine @@ -63,10 +61,5 @@ cacos(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex cacosl(long double complex); -#else /* lint */ __weak_alias(cacosl, cacos); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cacosh.c b/lib/libm/src/s_cacosh.c index 2adaa7bbbdf..a0cd1a36db0 100644 --- a/lib/libm/src/s_cacosh.c +++ b/lib/libm/src/s_cacosh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cacosh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cacosh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* cacosh * * Complex inverse hyperbolic cosine @@ -58,10 +56,5 @@ cacosh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex cacoshl(long double complex); -#else /* lint */ __weak_alias(cacoshl, cacosh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_carg.c b/lib/libm/src/s_carg.c index 4134faf042c..f34fd428f76 100644 --- a/lib/libm/src/s_carg.c +++ b/lib/libm/src/s_carg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_carg.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_carg.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -28,10 +26,5 @@ carg(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double cargl(long double complex); -#else /* lint */ __weak_alias(cargl, carg); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_casin.c b/lib/libm/src/s_casin.c index 9ca3008f863..a663fb071d2 100644 --- a/lib/libm/src/s_casin.c +++ b/lib/libm/src/s_casin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_casin.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_casin.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* casin() * * Complex circular arc sine @@ -132,10 +130,5 @@ casin(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex casinl(long double complex); -#else /* lint */ __weak_alias(casinl, casin); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_casinh.c b/lib/libm/src/s_casinh.c index 974d49ad06d..38ed8ea9097 100644 --- a/lib/libm/src/s_casinh.c +++ b/lib/libm/src/s_casinh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_casinh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_casinh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* casinh * * Complex inverse hyperbolic sine @@ -58,10 +56,5 @@ casinh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex casinhl(long double complex); -#else /* lint */ __weak_alias(casinhl, casinh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_catan.c b/lib/libm/src/s_catan.c index fc7099b7259..eaaa29b32fa 100644 --- a/lib/libm/src/s_catan.c +++ b/lib/libm/src/s_catan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_catan.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_catan.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* catan() * * Complex circular arc tangent @@ -129,10 +127,5 @@ ovrf: } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex catanl(long double complex); -#else /* lint */ __weak_alias(catanl, catan); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_catanh.c b/lib/libm/src/s_catanh.c index 726137ebea4..c2cd3fdccae 100644 --- a/lib/libm/src/s_catanh.c +++ b/lib/libm/src/s_catanh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_catanh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_catanh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* catanh * * Complex inverse hyperbolic tangent @@ -58,10 +56,5 @@ catanh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex catanhl(long double complex); -#else /* lint */ __weak_alias(catanhl, catanh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cbrt.c b/lib/libm/src/s_cbrt.c index f16d6c7da9c..c4363dcdd50 100644 --- a/lib/libm/src/s_cbrt.c +++ b/lib/libm/src/s_cbrt.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -81,10 +79,5 @@ cbrt(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double cbrtl(long double); -#else /* lint */ __weak_alias(cbrtl, cbrt); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ccos.c b/lib/libm/src/s_ccos.c index da2cc009002..38cd7f9891f 100644 --- a/lib/libm/src/s_ccos.c +++ b/lib/libm/src/s_ccos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ccos.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_ccos.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* ccos() * * Complex circular cosine @@ -87,10 +85,5 @@ ccos(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex ccosl(long double complex); -#else /* lint */ __weak_alias(ccosl, ccos); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ccosh.c b/lib/libm/src/s_ccosh.c index 1b3216caa6d..b5672e1d353 100644 --- a/lib/libm/src/s_ccosh.c +++ b/lib/libm/src/s_ccosh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ccosh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_ccosh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* ccosh * * Complex hyperbolic cosine @@ -61,10 +59,5 @@ ccosh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex ccoshl(long double complex); -#else /* lint */ __weak_alias(ccoshl, ccosh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ceil.c b/lib/libm/src/s_ceil.c index b927f35ce27..ae7d2e34e58 100644 --- a/lib/libm/src/s_ceil.c +++ b/lib/libm/src/s_ceil.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* * ceil(x) * Return x rounded toward -inf to integral value @@ -72,10 +70,5 @@ ceil(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double ceill(long double); -#else /* lint */ __weak_alias(ceill, ceil); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cexp.c b/lib/libm/src/s_cexp.c index 3febe08049f..655aa638412 100644 --- a/lib/libm/src/s_cexp.c +++ b/lib/libm/src/s_cexp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cexp.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cexp.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* cexp() * * Complex exponential function @@ -73,10 +71,5 @@ cexp(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex cexpl(long double complex); -#else /* lint */ __weak_alias(cexpl, cexp); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cimag.c b/lib/libm/src/s_cimag.c index f5b2f774e44..df0405ea05c 100644 --- a/lib/libm/src/s_cimag.c +++ b/lib/libm/src/s_cimag.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cimag.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cimag.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -28,10 +26,5 @@ cimag(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double cimagl(long double complex); -#else /* lint */ __weak_alias(cimagl, cimag); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_clog.c b/lib/libm/src/s_clog.c index 576c92fbf3b..da60c087563 100644 --- a/lib/libm/src/s_clog.c +++ b/lib/libm/src/s_clog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_clog.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_clog.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* clog.c * * Complex natural logarithm @@ -75,10 +73,5 @@ clog(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex clogl(long double complex); -#else /* lint */ __weak_alias(clogl, clog); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_conj.c b/lib/libm/src/s_conj.c index 92841550003..da995bea6fd 100644 --- a/lib/libm/src/s_conj.c +++ b/lib/libm/src/s_conj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_conj.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_conj.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -28,10 +26,5 @@ conj(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex conjl(long double complex); -#else /* lint */ __weak_alias(conjl, conj); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_copysign.c b/lib/libm/src/s_copysign.c index 4cb7b519440..067dad07555 100644 --- a/lib/libm/src/s_copysign.c +++ b/lib/libm/src/s_copysign.c @@ -16,8 +16,6 @@ * with the sign bit of y. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -34,10 +32,5 @@ copysign(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double copysignl(long double, long double); -#else /* lint */ __weak_alias(copysignl, copysign); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cos.c b/lib/libm/src/s_cos.c index dcabc7ae0e2..7950edc55ba 100644 --- a/lib/libm/src/s_cos.c +++ b/lib/libm/src/s_cos.c @@ -41,8 +41,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -78,10 +76,5 @@ cos(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double cosl(long double); -#else /* lint */ __weak_alias(cosl, cos); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cpow.c b/lib/libm/src/s_cpow.c index d0dfca83e81..73b04348a6c 100644 --- a/lib/libm/src/s_cpow.c +++ b/lib/libm/src/s_cpow.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cpow.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cpow.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* cpow * * Complex power function @@ -74,10 +72,5 @@ cpow(double complex a, double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex cpowl(long double complex, long double complex); -#else /* lint */ __weak_alias(cpowl, cpow); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_cproj.c b/lib/libm/src/s_cproj.c index 7fa2dbc2e3f..f7b8bd1bf5d 100644 --- a/lib/libm/src/s_cproj.c +++ b/lib/libm/src/s_cproj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cproj.c,v 1.4 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_cproj.c,v 1.5 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -37,10 +35,5 @@ cproj(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex cprojl(long double complex); -#else /* lint */ __weak_alias(cprojl, cproj); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_creal.c b/lib/libm/src/s_creal.c index 60f73901053..a491d29dc17 100644 --- a/lib/libm/src/s_creal.c +++ b/lib/libm/src/s_creal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_creal.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_creal.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - #include <complex.h> #include <float.h> #include <math.h> @@ -28,10 +26,5 @@ creal(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double creall(long double complex); -#else /* lint */ __weak_alias(creall, creal); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_csin.c b/lib/libm/src/s_csin.c index be10087327d..49b148fc4cc 100644 --- a/lib/libm/src/s_csin.c +++ b/lib/libm/src/s_csin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_csin.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_csin.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* csin() * * Complex circular sine @@ -89,10 +87,5 @@ csin(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex csinl(long double complex); -#else /* lint */ __weak_alias(csinl, csin); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_csinh.c b/lib/libm/src/s_csinh.c index 0aa4d5cb7e4..b92e809a95c 100644 --- a/lib/libm/src/s_csinh.c +++ b/lib/libm/src/s_csinh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_csinh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_csinh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* csinh * * Complex hyperbolic sine @@ -60,10 +58,5 @@ csinh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex csinhl(long double complex); -#else /* lint */ __weak_alias(csinhl, csinh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_csqrt.c b/lib/libm/src/s_csqrt.c index c1cbcfe38e5..21570e72496 100644 --- a/lib/libm/src/s_csqrt.c +++ b/lib/libm/src/s_csqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_csqrt.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_csqrt.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* csqrt() * * Complex square root @@ -134,10 +132,5 @@ csqrt(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex csqrtl(long double complex); -#else /* lint */ __weak_alias(csqrtl, csqrt); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ctan.c b/lib/libm/src/s_ctan.c index 0b635235336..945a19175af 100644 --- a/lib/libm/src/s_ctan.c +++ b/lib/libm/src/s_ctan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ctan.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_ctan.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* ctan() * * Complex circular tangent @@ -155,10 +153,5 @@ ctan(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex ctanl(long double complex); -#else /* lint */ __weak_alias(ctanl, ctan); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ctanh.c b/lib/libm/src/s_ctanh.c index a0d508b1087..35da9ef316e 100644 --- a/lib/libm/src/s_ctanh.c +++ b/lib/libm/src/s_ctanh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ctanh.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_ctanh.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> * @@ -15,8 +15,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* LINTLIBRARY */ - /* ctanh * * Complex hyperbolic tangent @@ -62,10 +60,5 @@ ctanh(double complex z) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double complex ctanhl(long double complex); -#else /* lint */ __weak_alias(ctanhl, ctanh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_erf.c b/lib/libm/src/s_erf.c index 9caca5cf697..df35520eff2 100644 --- a/lib/libm/src/s_erf.c +++ b/lib/libm/src/s_erf.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* double erf(double x) * double erfc(double x) * x @@ -300,12 +298,6 @@ erfc(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double erfl(long double); -long double erfcl(long double); -#else /* lint */ __weak_alias(erfl, erf); __weak_alias(erfcl, erf); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_exp2.c b/lib/libm/src/s_exp2.c index 807eb2a72d0..752a7f0b82b 100644 --- a/lib/libm/src/s_exp2.c +++ b/lib/libm/src/s_exp2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_exp2.c,v 1.4 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_exp2.c,v 1.5 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -392,10 +390,5 @@ exp2(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double exp2l(long double); -#else /* lint */ __weak_alias(exp2l, exp2); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_expm1.c b/lib/libm/src/s_expm1.c index a201550032a..199a8b283f0 100644 --- a/lib/libm/src/s_expm1.c +++ b/lib/libm/src/s_expm1.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* expm1(x) * Returns exp(x)-1, the exponential of x minus 1. * @@ -220,10 +218,5 @@ expm1(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double expm1l(long double); -#else /* lint */ __weak_alias(expm1l, expm1); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_floor.c b/lib/libm/src/s_floor.c index 439cac80782..6b4af7f8e84 100644 --- a/lib/libm/src/s_floor.c +++ b/lib/libm/src/s_floor.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* * floor(x) * Return x rounded toward -inf to integral value @@ -73,10 +71,5 @@ floor(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double floorl(long double); -#else /* lint */ __weak_alias(floorl, floor); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_fma.c b/lib/libm/src/s_fma.c index ffdd36bf6b3..f8e5673f89d 100644 --- a/lib/libm/src/s_fma.c +++ b/lib/libm/src/s_fma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_fma.c,v 1.2 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_fma.c,v 1.3 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> @@ -26,8 +26,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <fenv.h> #include <float.h> #include <math.h> @@ -204,10 +202,5 @@ fma(double x, double y, double z) #endif /* LDBL_MANT_DIG != 113 */ #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double fmal(long double, long double, long double); -#else /* lint */ __weak_alias(fmal, fma); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_fmax.c b/lib/libm/src/s_fmax.c index 8af710d70ae..c01d05f817b 100644 --- a/lib/libm/src/s_fmax.c +++ b/lib/libm/src/s_fmax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_fmax.c,v 1.6 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_fmax.c,v 1.7 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -50,10 +48,5 @@ fmax(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double fmaxl(long double, long double); -#else /* lint */ __weak_alias(fmaxl, fmax); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_fmin.c b/lib/libm/src/s_fmin.c index af2ec3f73ef..f8545b77cff 100644 --- a/lib/libm/src/s_fmin.c +++ b/lib/libm/src/s_fmin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_fmin.c,v 1.6 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_fmin.c,v 1.7 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2004 David Schultz <das@FreeBSD.ORG> * All rights reserved. @@ -25,8 +25,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -50,10 +48,5 @@ fmin(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double fminl(long double, long double); -#else /* lint */ __weak_alias(fminl, fmin); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_ilogb.c b/lib/libm/src/s_ilogb.c index 8e263b6dc64..106e8d7f375 100644 --- a/lib/libm/src/s_ilogb.c +++ b/lib/libm/src/s_ilogb.c @@ -16,8 +16,6 @@ * ilogb(inf/NaN) = 0x7fffffff (no signal is raised) */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -47,10 +45,5 @@ ilogb(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -int ilogbl(long double); -#else /* lint */ __weak_alias(ilogbl, ilogb); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_llrint.c b/lib/libm/src/s_llrint.c index c4a984e6566..d9d726d09e2 100644 --- a/lib/libm/src/s_llrint.c +++ b/lib/libm/src/s_llrint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_llrint.c,v 1.2 2011/07/06 00:02:42 martynas Exp $ */ +/* $OpenBSD: s_llrint.c,v 1.3 2013/01/13 03:45:00 martynas Exp $ */ /* $NetBSD: llrint.c,v 1.2 2004/10/13 15:18:32 drochner Exp $ */ /* @@ -6,8 +6,6 @@ * Public domain. */ -/* LINTLIBRARY */ - #define LRINTNAME llrint #define RESTYPE long long int #define RESTYPE_MIN LLONG_MIN @@ -16,10 +14,5 @@ #include "s_lrint.c" #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long long int llrintl(long double); -#else /* lint */ __weak_alias(llrintl, llrint); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_llround.c b/lib/libm/src/s_llround.c index de130396f2d..ff5e3831d88 100644 --- a/lib/libm/src/s_llround.c +++ b/lib/libm/src/s_llround.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_llround.c,v 1.2 2011/07/06 00:02:42 martynas Exp $ */ +/* $OpenBSD: s_llround.c,v 1.3 2013/01/13 03:45:00 martynas Exp $ */ /* $NetBSD: llround.c,v 1.2 2004/10/13 15:18:32 drochner Exp $ */ /* @@ -6,8 +6,6 @@ * Public domain. */ -/* LINTLIBRARY */ - #define LROUNDNAME llround #define RESTYPE long long int #define RESTYPE_MIN LLONG_MIN @@ -16,10 +14,5 @@ #include "s_lround.c" #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long long int llroundl(long double); -#else /* lint */ __weak_alias(llroundl, llround); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_log1p.c b/lib/libm/src/s_log1p.c index 9e387df9c72..b3f702e7f9a 100644 --- a/lib/libm/src/s_log1p.c +++ b/lib/libm/src/s_log1p.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* double log1p(double x) * * Method : @@ -161,10 +159,5 @@ log1p(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double log1pl(long double); -#else /* lint */ __weak_alias(log1pl, log1p); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_lrint.c b/lib/libm/src/s_lrint.c index 7a1c73f2933..9f3351994db 100644 --- a/lib/libm/src/s_lrint.c +++ b/lib/libm/src/s_lrint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_lrint.c,v 1.7 2011/07/06 00:02:42 martynas Exp $ */ +/* $OpenBSD: s_lrint.c,v 1.8 2013/01/13 03:45:00 martynas Exp $ */ /* $NetBSD: lrint.c,v 1.3 2004/10/13 15:18:32 drochner Exp $ */ /*- @@ -27,8 +27,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <sys/limits.h> #include <float.h> @@ -101,10 +99,5 @@ LRINTNAME(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long int lrintl(long double); -#else /* lint */ __weak_alias(lrintl, lrint); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_lround.c b/lib/libm/src/s_lround.c index 91e2c79e8a2..d9216280067 100644 --- a/lib/libm/src/s_lround.c +++ b/lib/libm/src/s_lround.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_lround.c,v 1.4 2011/07/06 00:02:42 martynas Exp $ */ +/* $OpenBSD: s_lround.c,v 1.5 2013/01/13 03:45:00 martynas Exp $ */ /* $NetBSD: lround.c,v 1.2 2004/10/13 15:18:32 drochner Exp $ */ /*- @@ -27,8 +27,6 @@ * SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <sys/limits.h> #include <float.h> @@ -91,10 +89,5 @@ LROUNDNAME(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long int lroundl(long double); -#else /* lint */ __weak_alias(lroundl, lround); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_nan.c b/lib/libm/src/s_nan.c index 4f2fadd3419..c430799bdd3 100644 --- a/lib/libm/src/s_nan.c +++ b/lib/libm/src/s_nan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_nan.c,v 1.8 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_nan.c,v 1.9 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2007 David Schultz * All rights reserved. @@ -27,8 +27,6 @@ * $FreeBSD: src/lib/msun/src/s_nan.c,v 1.2 2007/12/18 23:46:32 das Exp $ */ -/* LINTLIBRARY */ - #include <sys/types.h> #include <sys/endian.h> #include <ctype.h> @@ -125,10 +123,5 @@ nanf(const char *s) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double nanl(const char *); -#else /* lint */ __weak_alias(nanl, nan); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_nextafter.c b/lib/libm/src/s_nextafter.c index a3fb9797a0c..ce24a996d81 100644 --- a/lib/libm/src/s_nextafter.c +++ b/lib/libm/src/s_nextafter.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* IEEE functions * nextafter(x,y) * return the next machine floating-point number of x in the @@ -75,14 +73,7 @@ nextafter(double x, double y) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double nextafterl(long double, long double); -double nexttoward(double, long double); -long double nexttowardl(long double, long double); -#else /* lint */ __weak_alias(nextafterl, nextafter); __weak_alias(nexttoward, nextafter); __weak_alias(nexttowardl, nextafter); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_remquo.c b/lib/libm/src/s_remquo.c index 42285213033..23d86038cae 100644 --- a/lib/libm/src/s_remquo.c +++ b/lib/libm/src/s_remquo.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -153,10 +151,5 @@ fixup: } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double remquol(long double, long double, int *); -#else /* lint */ __weak_alias(remquol, remquo); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_rint.c b/lib/libm/src/s_rint.c index 2bb3acba96c..383f931bdfa 100644 --- a/lib/libm/src/s_rint.c +++ b/lib/libm/src/s_rint.c @@ -20,8 +20,6 @@ * Inexact flag raised if x not equal to rint(x). */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -79,10 +77,5 @@ rint(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double rintl(long double); -#else /* lint */ __weak_alias(rintl, rint); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_round.c b/lib/libm/src/s_round.c index 97bed04a6d9..18b4ca5b93b 100644 --- a/lib/libm/src/s_round.c +++ b/lib/libm/src/s_round.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_round.c,v 1.3 2012/12/05 23:20:04 deraadt Exp $ */ +/* $OpenBSD: s_round.c,v 1.4 2013/01/13 03:45:00 martynas Exp $ */ /*- * Copyright (c) 2003, Steven G. Kargl @@ -26,8 +26,6 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -55,10 +53,5 @@ round(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double roundl(long double); -#else /* lint */ __weak_alias(roundl, round); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_scalbn.c b/lib/libm/src/s_scalbn.c index b4a24ec560a..91afe6b7d84 100644 --- a/lib/libm/src/s_scalbn.c +++ b/lib/libm/src/s_scalbn.c @@ -17,8 +17,6 @@ * exponentiation or a multiplication. */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -29,10 +27,5 @@ scalbn (double x, int n) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double scalbnl(long double, int); -#else /* lint */ __weak_alias(scalbnl, scalbn); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_sin.c b/lib/libm/src/s_sin.c index 37cb2d9592a..a97821a8bbd 100644 --- a/lib/libm/src/s_sin.c +++ b/lib/libm/src/s_sin.c @@ -41,8 +41,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -78,10 +76,5 @@ sin(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double sinl(long double); -#else /* lint */ __weak_alias(sinl, sin); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_tan.c b/lib/libm/src/s_tan.c index 6b275d3e2a3..f1f72420682 100644 --- a/lib/libm/src/s_tan.c +++ b/lib/libm/src/s_tan.c @@ -40,8 +40,6 @@ * TRIG(x) returns trig(x) nearly rounded */ -/* LINTLIBRARY */ - #include <float.h> #include <math.h> @@ -72,10 +70,5 @@ tan(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double tanl(long double); -#else /* lint */ __weak_alias(tanl, tan); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_tanh.c b/lib/libm/src/s_tanh.c index d89f24436d1..6729b093b7f 100644 --- a/lib/libm/src/s_tanh.c +++ b/lib/libm/src/s_tanh.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* Tanh(x) * Return the Hyperbolic Tangent of x * @@ -80,10 +78,5 @@ tanh(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double tanhl(long double); -#else /* lint */ __weak_alias(tanhl, tanh); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/s_trunc.c b/lib/libm/src/s_trunc.c index 9aa8d24ba68..2db057fbf67 100644 --- a/lib/libm/src/s_trunc.c +++ b/lib/libm/src/s_trunc.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* * trunc(x) * Return x rounded toward 0 to integral value @@ -62,10 +60,5 @@ trunc(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double truncl(long double); -#else /* lint */ __weak_alias(truncl, trunc); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ diff --git a/lib/libm/src/w_lgamma.c b/lib/libm/src/w_lgamma.c index ec7e5aa42c1..3a2c464dac7 100644 --- a/lib/libm/src/w_lgamma.c +++ b/lib/libm/src/w_lgamma.c @@ -10,8 +10,6 @@ * ==================================================== */ -/* LINTLIBRARY */ - /* double lgamma(double x) * Return the logarithm of the Gamma function of x. * @@ -32,10 +30,5 @@ lgamma(double x) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double lgammal(long double); -#else /* lint */ __weak_alias(lgammal, lgamma); -#endif /* lint */ #endif /* LDBL_MANT_DIG == 53 */ |