diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2013-01-13 03:45:01 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2013-01-13 03:45:01 +0000 |
commit | b762e20c2f1baadeb92faa332cf5f5aee2c40323 (patch) | |
tree | aea4e6af1c7198456c97e3d6927c255a59af6afc /lib/libm/noieee_src | |
parent | d55271d9132e452df02044ea1dd387a64b7ba419 (diff) |
Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB,
and a few empty files for lint to chew on.
Diffstat (limited to 'lib/libm/noieee_src')
-rw-r--r-- | lib/libm/noieee_src/n_asincos.c | 16 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_atan.c | 9 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_atan2.c | 9 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_fdim.c | 11 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_floor.c | 9 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_fmax.c | 9 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_fmin.c | 9 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_sincos.c | 16 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_support.c | 28 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_tan.c | 9 |
10 files changed, 11 insertions, 114 deletions
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 */ |