diff options
author | 2009-04-05 02:12:43 +0000 | |
---|---|---|
committer | 2009-04-05 02:12:43 +0000 | |
commit | fda4b60dd3bf7e10b4d7294c51d91aaddfe5dbce (patch) | |
tree | f4231a86b86363c5227be790722ba876f98d70b3 /lib/libm/noieee_src | |
parent | kill DRM_VERIFYAREA_READ, it's part of a linux optimisation where we can (diff) | |
download | wireguard-openbsd-fda4b60dd3bf7e10b4d7294c51d91aaddfe5dbce.tar.xz wireguard-openbsd-fda4b60dd3bf7e10b4d7294c51d91aaddfe5dbce.zip |
const static -> static const; since it's deprecated per C99. ok millert@
Diffstat (limited to 'lib/libm/noieee_src')
-rw-r--r-- | lib/libm/noieee_src/mathimpl.h | 6 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_asinh.c | 4 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_exp__E.c | 4 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_expm1.c | 4 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_log1p.c | 4 | ||||
-rw-r--r-- | lib/libm/noieee_src/n_pow.c | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/lib/libm/noieee_src/mathimpl.h b/lib/libm/noieee_src/mathimpl.h index ec856a8b43d..315a04d21a1 100644 --- a/lib/libm/noieee_src/mathimpl.h +++ b/lib/libm/noieee_src/mathimpl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mathimpl.h,v 1.8 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: mathimpl.h,v 1.9 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: mathimpl.h,v 1.1 1995/10/10 23:36:31 ragge Exp $ */ /* * Copyright (c) 1988, 1993 @@ -64,7 +64,7 @@ * We define "vccast" if this needs doing. */ # define vc(name, value, x1,x2,x3,x4, bexp, xval) \ - const static long cat3(name,,x)[] = {cat3t(0x,x1,x2), cat3t(0x,x3,x4)}; + static const long cat3(name,,x)[] = {cat3t(0x,x1,x2), cat3t(0x,x3,x4)}; # define ic(name, value, bexp, xval) ; @@ -75,7 +75,7 @@ # define vc(name, value, x1,x2,x3,x4, bexp, xval) ; # define ic(name, value, bexp, xval) \ - const static double name = value; + static const double name = value; #endif /* defined(__vax__) */ diff --git a/lib/libm/noieee_src/n_asinh.c b/lib/libm/noieee_src/n_asinh.c index eb37461af3a..fbd34ffdfed 100644 --- a/lib/libm/noieee_src/n_asinh.c +++ b/lib/libm/noieee_src/n_asinh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_asinh.c,v 1.7 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: n_asinh.c,v 1.8 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: n_asinh.c,v 1.1 1995/10/10 23:36:35 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -84,7 +84,7 @@ double asinh(double x) { double t,s; - const static double small=1.0E-10, /* fl(1+small*small) == 1 */ + static const double small=1.0E-10, /* fl(1+small*small) == 1 */ big =1.0E20, /* fl(1+big) == big */ one =1.0 ; diff --git a/lib/libm/noieee_src/n_exp__E.c b/lib/libm/noieee_src/n_exp__E.c index cd08d0e338a..cc70306373e 100644 --- a/lib/libm/noieee_src/n_exp__E.c +++ b/lib/libm/noieee_src/n_exp__E.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_exp__E.c,v 1.9 2008/07/22 19:58:40 martynas Exp $ */ +/* $OpenBSD: n_exp__E.c,v 1.10 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: n_exp__E.c,v 1.1 1995/10/10 23:36:45 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -109,7 +109,7 @@ ic(q2, 9.9176615021572857300E-4, -10, 1.03FC4CB8C98E8) double __exp__E(double x, double c) { - const static double zero=0.0, one=1.0, half=1.0/2.0, small=1.0E-19; + static const double zero=0.0, one=1.0, half=1.0/2.0, small=1.0E-19; double z,p,q,xp,xh,w; if(copysign(x,one)>small) { z = x*x ; diff --git a/lib/libm/noieee_src/n_expm1.c b/lib/libm/noieee_src/n_expm1.c index 1448bb00961..070f84db3ea 100644 --- a/lib/libm/noieee_src/n_expm1.c +++ b/lib/libm/noieee_src/n_expm1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_expm1.c,v 1.9 2008/07/18 13:08:58 martynas Exp $ */ +/* $OpenBSD: n_expm1.c,v 1.10 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: n_expm1.c,v 1.1 1995/10/10 23:36:46 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -107,7 +107,7 @@ ic(invln2, 1.4426950408889633870E0, 0, 1.71547652B82FE) double expm1(double x) { - const static double one=1.0, half=1.0/2.0, tiny=1e-300; + static const double one=1.0, half=1.0/2.0, tiny=1e-300; double z,hi,lo,c; int k; #if defined(__vax__) diff --git a/lib/libm/noieee_src/n_log1p.c b/lib/libm/noieee_src/n_log1p.c index efcca325393..5dfedcc5015 100644 --- a/lib/libm/noieee_src/n_log1p.c +++ b/lib/libm/noieee_src/n_log1p.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_log1p.c,v 1.8 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: n_log1p.c,v 1.9 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: n_log1p.c,v 1.1 1995/10/10 23:37:00 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -113,7 +113,7 @@ ic(sqrt2, 1.4142135623730951455E0, 0, 1.6A09E667F3BCD) double log1p(double x) { - const static double zero=0.0, negone= -1.0, one=1.0, + static const double zero=0.0, negone= -1.0, one=1.0, half=1.0/2.0, small=1.0E-20; /* 1+small == 1 */ double z,s,t,c; int k; diff --git a/lib/libm/noieee_src/n_pow.c b/lib/libm/noieee_src/n_pow.c index 2801a4b0b63..26b4cc23b3e 100644 --- a/lib/libm/noieee_src/n_pow.c +++ b/lib/libm/noieee_src/n_pow.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_pow.c,v 1.10 2008/06/25 17:49:31 martynas Exp $ */ +/* $OpenBSD: n_pow.c,v 1.11 2009/04/05 02:12:43 martynas Exp $ */ /* $NetBSD: n_pow.c,v 1.1 1995/10/10 23:37:02 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -117,7 +117,7 @@ static char sccsid[] = "@(#)pow.c 8.1 (Berkeley) 6/4/93"; #define infnan(x) 0.0 #endif /* defined(__vax__) */ -const static double zero=0.0, one=1.0, two=2.0, negone= -1.0; +static const double zero=0.0, one=1.0, two=2.0, negone= -1.0; static double pow_P(double, double); |