98f4a974a5
log2() function in misc.c and several compiler warnings.
28 lines
512 B
Text
28 lines
512 B
Text
$NetBSD: patch-ab,v 1.1 2006/04/26 01:52:18 wulf Exp $
|
|
|
|
--- src/misc/misc.c.orig 2006-04-26 10:31:03.000000000 +0930
|
|
+++ src/misc/misc.c 2006-04-26 10:31:31.000000000 +0930
|
|
@@ -102,23 +102,6 @@
|
|
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
-/*
|
|
- * Integer base-2 logarithm
|
|
- */
|
|
-int log2(unsigned int x)
|
|
-{
|
|
- int y = 0;
|
|
-
|
|
- x >>= 1;
|
|
-
|
|
- while (x) {
|
|
- x >>= 1;
|
|
- y++;
|
|
- }
|
|
-
|
|
- return y;
|
|
-}
|
|
-
|
|
/* ---------------------------------------------------------------------- */
|
|
|
|
/*
|