Module Name:    src
Committed By:   bouyer
Date:           Fri May 20 19:26:01 UTC 2011

Modified Files:
        src/sys/sys [netbsd-5]: bitops.h

Log Message:
Pull up following revision(s) (requested by jym in ticket #1616):
        sys/sys/bitops.h: revision 1.8
Use fls64() only for types strictly bigger than 4 bytes.
ok christos@. Will ask for a pull-up, using 64 bits ops even for 4-bytes
int's is plain overkill.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.10.1 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.2 src/sys/sys/bitops.h:1.2.10.1
--- src/sys/sys/bitops.h:1.2	Mon Apr 28 20:24:10 2008
+++ src/sys/sys/bitops.h	Fri May 20 19:26:01 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bitops.h,v 1.2 2008/04/28 20:24:10 martin Exp $	*/
+/*	$NetBSD: bitops.h,v 1.2.10.1 2011/05/20 19:26:01 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -253,7 +253,7 @@
 	_ilog2_helper(_n,  2) \
 	_ilog2_helper(_n,  1) \
 	_ilog2_helper(_n,  0) \
-	-1) : ((sizeof(_n) >= 4 ? fls64(_n) : fls32(_n)) - 1) \
+	-1) : ((sizeof(_n) > 4 ? fls64(_n) : fls32(_n)) - 1) \
 )
 
 #endif /* _SYS_BITOPS_H_ */

Reply via email to