Module Name:    src
Committed By:   christos
Date:           Sat Mar 20 14:43:50 UTC 2010

Modified Files:
        src/sys/sys: bitops.h

Log Message:
/*LINTED*/ is too wide a brush.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/sys/bitops.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/bitops.h
diff -u src/sys/sys/bitops.h:1.4 src/sys/sys/bitops.h:1.5
--- src/sys/sys/bitops.h:1.4	Sat Mar 20 08:54:42 2010
+++ src/sys/sys/bitops.h	Sat Mar 20 10:43:50 2010
@@ -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;
 }
 

Reply via email to