diff options
-rw-r--r-- | lib/libc/rpc/rpc_prot.c | 10 | ||||
-rw-r--r-- | lib/libc/rpc/xdr.c | 8 | ||||
-rw-r--r-- | lib/libc/rpc/xdr_array.c | 6 | ||||
-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 |
17 files changed, 40 insertions, 40 deletions
diff --git a/lib/libc/rpc/rpc_prot.c b/lib/libc/rpc/rpc_prot.c index 2c1d981f975..78b1c7d422c 100644 --- a/lib/libc/rpc/rpc_prot.c +++ b/lib/libc/rpc/rpc_prot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_prot.c,v 1.14 2016/12/20 22:19:08 krw Exp $ */ +/* $OpenBSD: rpc_prot.c,v 1.15 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -77,7 +77,7 @@ xdr_des_block(XDR *xdrs, des_block *blkp) /* * XDR the MSG_ACCEPTED part of a reply message union */ -bool_t +bool_t xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar) { @@ -103,7 +103,7 @@ DEF_WEAK(xdr_accepted_reply); /* * XDR the MSG_DENIED part of a reply message union */ -bool_t +bool_t xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr) { @@ -134,7 +134,7 @@ static struct xdr_discrim reply_dscrm[3] = { bool_t xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg) { - if (xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) && + if (xdr_u_int32_t(xdrs, &(rmsg->rm_xid)) && xdr_enum(xdrs, (enum_t *)&(rmsg->rm_direction)) && rmsg->rm_direction == REPLY) return (xdr_union(xdrs, (enum_t *)&(rmsg->rm_reply.rp_stat), @@ -202,7 +202,7 @@ accepted(enum accept_stat acpt_stat, struct rpc_err *error) error->re_lb.s2 = (long)acpt_stat; } -static void +static void rejected(enum reject_stat rjct_stat, struct rpc_err *error) { diff --git a/lib/libc/rpc/xdr.c b/lib/libc/rpc/xdr.c index a5117ef2a9c..00807ad6f48 100644 --- a/lib/libc/rpc/xdr.c +++ b/lib/libc/rpc/xdr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr.c,v 1.15 2016/12/20 22:19:08 krw Exp $ */ +/* $OpenBSD: xdr.c,v 1.16 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -66,7 +66,7 @@ void xdr_free(xdrproc_t proc, char *objp) { XDR x; - + x.x_op = XDR_FREE; (*proc)(&x, objp); } @@ -666,8 +666,8 @@ xdr_string(XDR *xdrs, char **cpp, u_int maxsize) } DEF_WEAK(xdr_string); -/* - * Wrapper for xdr_string that can be called directly from +/* + * Wrapper for xdr_string that can be called directly from * routines like clnt_call */ bool_t diff --git a/lib/libc/rpc/xdr_array.c b/lib/libc/rpc/xdr_array.c index 6e4b7abef64..bd51f956afb 100644 --- a/lib/libc/rpc/xdr_array.c +++ b/lib/libc/rpc/xdr_array.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_array.c,v 1.13 2016/12/20 22:19:08 krw Exp $ */ +/* $OpenBSD: xdr_array.c,v 1.14 2017/01/21 08:29:13 krw Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -96,7 +96,7 @@ xdr_array(XDR *xdrs, break; } } - + /* * now we xdr each element of array */ @@ -139,5 +139,5 @@ xdr_vector(XDR *xdrs, char *basep, u_int nelem, u_int elemsize, return(FALSE); elptr += elemsize; } - return(TRUE); + return(TRUE); } 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. * ==================================================== */ |