Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys /*LINTED*/ is too wide a brush.
details: https://anonhg.NetBSD.org/src/rev/b1e964977912
branches: trunk
changeset: 753209:b1e964977912
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 20 14:43:50 2010 +0000
description:
/*LINTED*/ is too wide a brush.
diffstat:
sys/sys/bitops.h | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r efcb20bbb39b -r b1e964977912 sys/sys/bitops.h
--- a/sys/sys/bitops.h Sat Mar 20 12:54:42 2010 +0000
+++ b/sys/sys/bitops.h Sat Mar 20 14:43:50 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bitops.h,v 1.4 2010/03/20 12:54:42 joerg Exp $ */
+/* $NetBSD: bitops.h,v 1.5 2010/03/20 14:43:50 christos Exp $ */
/*-
* Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
@@ -267,8 +267,7 @@
_l = fls32(_div - 1);
_mt = 0x100000000ULL * ((1ULL << _l) - _div);
- /* LINTED */
- *_m = _mt / _div + 1;
+ *_m = (uint32_t)(_mt / _div + 1);
*_s1 = (_l > 1) ? 1 : _l;
*_s2 = (_l == 0) ? 0 : _l - 1;
}
@@ -280,8 +279,7 @@
{
uint32_t _t;
- /* LINTED */
- _t = ((uint64_t)_v * _m) >> 32;
+ _t = (uint32_t)(((uint64_t)_v * _m) >> 32);
return (_t + ((_v - _t) >> _s1)) >> _s2;
}
Home |
Main Index |
Thread Index |
Old Index