blob: aefd1db523bf3a02767ad1523d1495471ab11a09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$NetBSD: patch-aa,v 1.1 2006/04/26 01:52:18 wulf Exp $
--- src/misc/misc.h.orig 2006-04-26 10:32:02.000000000 +0930
+++ src/misc/misc.h 2006-04-26 10:31:20.000000000 +0930
@@ -104,25 +104,6 @@
/* ---------------------------------------------------------------------- */
/*
- * Integer base-2 logarithm
- */
-extern inline int log2(unsigned int x)
-{
- int y = 0;
-
- x >>= 1;
-
- while (x) {
- x >>= 1;
- y++;
- }
-
- return y;
-}
-
-/* ---------------------------------------------------------------------- */
-
-/*
* Gray encoding and decoding (8 bit)
*/
extern inline unsigned char grayencode(unsigned char data)
|