Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/noieee_src add some fallthru comments.
details: https://anonhg.NetBSD.org/src/rev/0eb091d25fb5
branches: trunk
changeset: 448484:0eb091d25fb5
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 03:30:20 2019 +0000
description:
add some fallthru comments.
diffstat:
lib/libm/noieee_src/n_lgamma.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (42 lines):
diff -r 2f571b24e6c8 -r 0eb091d25fb5 lib/libm/noieee_src/n_lgamma.c
--- a/lib/libm/noieee_src/n_lgamma.c Mon Feb 04 03:29:41 2019 +0000
+++ b/lib/libm/noieee_src/n_lgamma.c Mon Feb 04 03:30:20 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: n_lgamma.c,v 1.6 2006/11/24 21:15:54 wiz Exp $ */
+/* $NetBSD: n_lgamma.c,v 1.7 2019/02/04 03:30:20 mrg Exp $ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -221,15 +221,15 @@
t = .5*t*t;
z = 1.0;
switch (x_int) {
- case 6: z = (y + 5);
- case 5: z *= (y + 4);
- case 4: z *= (y + 3);
+ case 6: z = (y + 5); /* FALLTHROUGH */
+ case 5: z *= (y + 4); /* FALLTHROUGH */
+ case 4: z *= (y + 3); /* FALLTHROUGH */
case 3: z *= (y + 2);
rr = __log__D(z);
rr.b += a0_lo; rr.a += a0_hi;
return(((r+rr.b)+t+rr.a));
case 2: return(((r+a0_lo)+t)+a0_hi);
- case 0: r -= log1p(x);
+ case 0: r -= log1p(x); /* FALLTHROUGH */
default: rr = __log__D(x);
rr.a -= a0_hi; rr.b -= a0_lo;
return(((r - rr.b) + t) - rr.a);
@@ -246,9 +246,9 @@
q = hi*t;
z = 1.0;
switch (x_int) {
- case 6: z = (y + 5);
- case 5: z *= (y + 4);
- case 4: z *= (y + 3);
+ case 6: z = (y + 5); /* FALLTHROUGH */
+ case 5: z *= (y + 4); /* FALLTHROUGH */
+ case 4: z *= (y + 3); /* FALLTHROUGH */
case 3: z *= (y + 2);
rr = __log__D(z);
r += rr.b; r += q;
Home |
Main Index |
Thread Index |
Old Index