summaryrefslogtreecommitdiff
path: root/lib/wsprd/jelinek.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wsprd/jelinek.h')
-rw-r--r--lib/wsprd/jelinek.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/wsprd/jelinek.h b/lib/wsprd/jelinek.h
new file mode 100644
index 00000000..64ecdb96
--- /dev/null
+++ b/lib/wsprd/jelinek.h
@@ -0,0 +1,26 @@
+#ifndef JELINEK_H
+#define JELINEK_H
+
+#include <stdint.h>
+
+struct snode {
+ uint64_t encstate; // Encoder state
+ int gamma; // Cumulative metric to this node
+ unsigned int depth; // depth of this node
+ unsigned int jpointer;
+};
+
+struct snode *stack;
+
+int jelinek(unsigned int *metric,
+ unsigned int *cycles,
+ unsigned char *data,
+ unsigned char *symbols,
+ unsigned int nbits,
+ unsigned int stacksize,
+ struct snode *stack,
+ int mettab[2][256],
+ unsigned int maxcycles);
+
+#endif
+