diff options
author | 2017-01-21 08:29:13 +0000 | |
---|---|---|
committer | 2017-01-21 08:29:13 +0000 | |
commit | beb15867ad58c144f0b15621aba82cb13678cd97 (patch) | |
tree | 9c0326e7411a38f6163d3ca588a6a79039f4ab52 /lib/libm/src | |
parent | Move Allwinner drivers that will soon be used by OpenBSD/arm64 (diff) | |
download | wireguard-openbsd-beb15867ad58c144f0b15621aba82cb13678cd97.tar.xz wireguard-openbsd-beb15867ad58c144f0b15621aba82cb13678cd97.zip |
Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.
Diffstat (limited to 'lib/libm/src')
-rw-r--r-- | lib/libm/src/ld80/e_atanhl.c | 2 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_coshl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_fmodl.c | 2 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_hypotl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_log10l.c | 6 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_log2l.c | 6 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_logl.c | 6 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_powl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/e_sinhl.c | 2 | ||||
-rw-r--r-- | lib/libm/src/ld80/k_cosl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/k_sinl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/s_log1pl.c | 6 | ||||
-rw-r--r-- | lib/libm/src/ld80/s_nanl.c | 4 | ||||
-rw-r--r-- | lib/libm/src/ld80/s_remquol.c | 2 |
14 files changed, 28 insertions, 28 deletions
diff --git a/lib/libm/src/ld80/e_atanhl.c b/lib/libm/src/ld80/e_atanhl.c index d75a757f3b6..166a529c6c5 100644 --- a/lib/libm/src/ld80/e_atanhl.c +++ b/lib/libm/src/ld80/e_atanhl.c @@ -18,7 +18,7 @@ * atanhl(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------) * 2 1 - x 1 - x * - * For x<0.5 + * For x<0.5 * atanhl(x) = 0.5*log1pl(2x+2x*x/(1-x)) * * Special cases: diff --git a/lib/libm/src/ld80/e_coshl.c b/lib/libm/src/ld80/e_coshl.c index cdb4dffeab3..83f95e69eda 100644 --- a/lib/libm/src/ld80/e_coshl.c +++ b/lib/libm/src/ld80/e_coshl.c @@ -17,11 +17,11 @@ * 2. * [ exp(x) - 1 ]^2 * 0 <= x <= ln2/2 : coshl(x) := 1 + ------------------- - * 2*exp(x) + * 2*exp(x) * * exp(x) + 1/exp(x) * ln2/2 <= x <= 22 : coshl(x) := ------------------- - * 2 + * 2 * 22 <= x <= lnovft : coshl(x) := expl(x)/2 * lnovft <= x <= ln2ovft: coshl(x) := expl(x/2)/2 * expl(x/2) * ln2ovft < x : coshl(x) := huge*huge (overflow) diff --git a/lib/libm/src/ld80/e_fmodl.c b/lib/libm/src/ld80/e_fmodl.c index a7cf3472a9f..00709ece940 100644 --- a/lib/libm/src/ld80/e_fmodl.c +++ b/lib/libm/src/ld80/e_fmodl.c @@ -5,7 +5,7 @@ * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ diff --git a/lib/libm/src/ld80/e_hypotl.c b/lib/libm/src/ld80/e_hypotl.c index 0030db33d47..e5cae196e12 100644 --- a/lib/libm/src/ld80/e_hypotl.c +++ b/lib/libm/src/ld80/e_hypotl.c @@ -38,8 +38,8 @@ * hypot(x,y) is NAN if x or y is NAN. * * Accuracy: - * hypot(x,y) returns sqrt(x^2+y^2) with error less - * than 1 ulps (units in the last place) + * hypot(x,y) returns sqrt(x^2+y^2) with error less + * than 1 ulps (units in the last place) */ #include <math.h> diff --git a/lib/libm/src/ld80/e_log10l.c b/lib/libm/src/ld80/e_log10l.c index f314fd179db..ea169c4df06 100644 --- a/lib/libm/src/ld80/e_log10l.c +++ b/lib/libm/src/ld80/e_log10l.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_log10l.c,v 1.2 2013/11/12 20:35:19 martynas Exp $ */ +/* $OpenBSD: e_log10l.c,v 1.3 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -155,7 +155,7 @@ if( x < SQRTH ) e -= 1; z = x - 0.5L; y = 0.5L * z + 0.5L; - } + } else { /* 2 (x-1)/(x+1) */ z = x - 0.5L; @@ -175,7 +175,7 @@ if( x < SQRTH ) { e -= 1; x = ldexpl( x, 1 ) - 1.0L; /* 2x - 1 */ - } + } else { x = x - 1.0L; diff --git a/lib/libm/src/ld80/e_log2l.c b/lib/libm/src/ld80/e_log2l.c index e02a34e12ea..ac5fbebce5f 100644 --- a/lib/libm/src/ld80/e_log2l.c +++ b/lib/libm/src/ld80/e_log2l.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_log2l.c,v 1.2 2013/11/12 20:35:19 martynas Exp $ */ +/* $OpenBSD: e_log2l.c,v 1.3 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -151,7 +151,7 @@ if( x < SQRTH ) e -= 1; z = x - 0.5L; y = 0.5L * z + 0.5L; - } + } else { /* 2 (x-1)/(x+1) */ z = x - 0.5L; @@ -171,7 +171,7 @@ if( x < SQRTH ) { e -= 1; x = ldexpl( x, 1 ) - 1.0L; /* 2x - 1 */ - } + } else { x = x - 1.0L; diff --git a/lib/libm/src/ld80/e_logl.c b/lib/libm/src/ld80/e_logl.c index a85ae0bfc5a..4553b281082 100644 --- a/lib/libm/src/ld80/e_logl.c +++ b/lib/libm/src/ld80/e_logl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_logl.c,v 1.4 2016/09/12 19:47:03 guenther Exp $ */ +/* $OpenBSD: e_logl.c,v 1.5 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -149,7 +149,7 @@ if( x < SQRTH ) e -= 1; z = x - 0.5L; y = 0.5L * z + 0.5L; - } + } else { /* 2 (x-1)/(x+1) */ z = x - 0.5L; @@ -172,7 +172,7 @@ if( x < SQRTH ) { e -= 1; x = ldexpl( x, 1 ) - 1.0L; /* 2x - 1 */ - } + } else { x = x - 1.0L; diff --git a/lib/libm/src/ld80/e_powl.c b/lib/libm/src/ld80/e_powl.c index 51a7ab50ee3..5bd949a7828 100644 --- a/lib/libm/src/ld80/e_powl.c +++ b/lib/libm/src/ld80/e_powl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_powl.c,v 1.6 2016/09/12 19:47:03 guenther Exp $ */ +/* $OpenBSD: e_powl.c,v 1.7 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -591,7 +591,7 @@ if( s < (-MAXLOGL+2.0L) ) /* First bit of the power */ if( n & 1 ) y = x; - + else { y = 1.0L; diff --git a/lib/libm/src/ld80/e_sinhl.c b/lib/libm/src/ld80/e_sinhl.c index 481313fb9ae..7a7e3d48ee2 100644 --- a/lib/libm/src/ld80/e_sinhl.c +++ b/lib/libm/src/ld80/e_sinhl.c @@ -17,7 +17,7 @@ * 2. * E + E/(E+1) * 0 <= x <= 25 : sinhl(x) := --------------, E=expm1l(x) - * 2 + * 2 * * 25 <= x <= lnovft : sinhl(x) := expl(x)/2 * lnovft <= x <= ln2ovft: sinhl(x) := expl(x/2)/2 * expl(x/2) diff --git a/lib/libm/src/ld80/k_cosl.c b/lib/libm/src/ld80/k_cosl.c index c9cec2fe372..0849c11be1c 100644 --- a/lib/libm/src/ld80/k_cosl.c +++ b/lib/libm/src/ld80/k_cosl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: k_cosl.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: k_cosl.c,v 1.2 2017/01/21 08:29:13 krw Exp $ */ /* From: @(#)k_cos.c 1.3 95/01/18 */ /* * ==================================================== @@ -7,7 +7,7 @@ * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ diff --git a/lib/libm/src/ld80/k_sinl.c b/lib/libm/src/ld80/k_sinl.c index 1bcff39607e..a961c5ebc08 100644 --- a/lib/libm/src/ld80/k_sinl.c +++ b/lib/libm/src/ld80/k_sinl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: k_sinl.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: k_sinl.c,v 1.2 2017/01/21 08:29:13 krw Exp $ */ /* From: @(#)k_sin.c 1.3 95/01/18 */ /* * ==================================================== @@ -7,7 +7,7 @@ * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ diff --git a/lib/libm/src/ld80/s_log1pl.c b/lib/libm/src/ld80/s_log1pl.c index db40b8bd7d5..b7b40aa029a 100644 --- a/lib/libm/src/ld80/s_log1pl.c +++ b/lib/libm/src/ld80/s_log1pl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_log1pl.c,v 1.4 2016/09/12 19:47:03 guenther Exp $ */ +/* $OpenBSD: s_log1pl.c,v 1.5 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net> @@ -147,7 +147,7 @@ if( x < SQRTH ) e -= 1; z = x - 0.5L; y = 0.5L * z + 0.5L; - } + } else { /* 2 (x-1)/(x+1) */ z = x - 0.5L; @@ -173,7 +173,7 @@ if( x < SQRTH ) x = 2.0 * x - 1.0L; else x = xm1; - } + } else { if (e != 0) diff --git a/lib/libm/src/ld80/s_nanl.c b/lib/libm/src/ld80/s_nanl.c index 157e34e8be0..40a2f68ab6e 100644 --- a/lib/libm/src/ld80/s_nanl.c +++ b/lib/libm/src/ld80/s_nanl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_nanl.c,v 1.1 2008/12/09 20:00:35 martynas Exp $ */ +/* $OpenBSD: s_nanl.c,v 1.2 2017/01/21 08:29:13 krw Exp $ */ /*- * Copyright (c) 2007 David Schultz * All rights reserved. @@ -30,7 +30,7 @@ #include <sys/types.h> #include <machine/ieee.h> #include <math.h> - + #include "math_private.h" long double diff --git a/lib/libm/src/ld80/s_remquol.c b/lib/libm/src/ld80/s_remquol.c index 0c65639038c..55eb2fc01b1 100644 --- a/lib/libm/src/ld80/s_remquol.c +++ b/lib/libm/src/ld80/s_remquol.c @@ -5,7 +5,7 @@ * * Developed at SunSoft, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ |