openbsd-ports/comms/gmfsk/patches/patch-src_misc_misc_c
2008-09-10 17:25:26 +00:00

30 lines
633 B
Plaintext

$OpenBSD: patch-src_misc_misc_c,v 1.1 2008/09/10 17:25:26 martynas Exp $
--- src/misc/misc.c.orig Tue Apr 13 15:49:04 2004
+++ src/misc/misc.c Wed Sep 10 20:23:38 2008
@@ -103,25 +103,6 @@ unsigned char rbits8(unsigned char w)
/* ---------------------------------------------------------------------- */
/*
- * Integer base-2 logarithm
- */
-int log2(unsigned int x)
-{
- int y = 0;
-
- x >>= 1;
-
- while (x) {
- x >>= 1;
- y++;
- }
-
- return y;
-}
-
-/* ---------------------------------------------------------------------- */
-
-/*
* Gray encoding and decoding (8 bit)
*/
unsigned char grayencode(unsigned char data)