summaryrefslogtreecommitdiff
path: root/ham/gmfsk/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'ham/gmfsk/patches/patch-aa')
-rw-r--r--ham/gmfsk/patches/patch-aa30
1 files changed, 30 insertions, 0 deletions
diff --git a/ham/gmfsk/patches/patch-aa b/ham/gmfsk/patches/patch-aa
new file mode 100644
index 00000000000..aefd1db523b
--- /dev/null
+++ b/ham/gmfsk/patches/patch-aa
@@ -0,0 +1,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)