summaryrefslogtreecommitdiffstats
path: root/src/fec/rs-common.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-09 10:06:34 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-02-09 10:06:34 +0100
commitd10839ab23b4ac4dea5ba183c451b650dd07331a (patch)
tree5f78e10a89134a2a167315a42bc21c5cc3a3cdbb /src/fec/rs-common.h
parentd1b74c21d8c6f816179cd700dd5859f51bf01d88 (diff)
downloaddabmux-d10839ab23b4ac4dea5ba183c451b650dd07331a.tar.gz
dabmux-d10839ab23b4ac4dea5ba183c451b650dd07331a.tar.bz2
dabmux-d10839ab23b4ac4dea5ba183c451b650dd07331a.zip
Move external code to lib and stop using SUBDIRS
Diffstat (limited to 'src/fec/rs-common.h')
-rw-r--r--src/fec/rs-common.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/fec/rs-common.h b/src/fec/rs-common.h
deleted file mode 100644
index e64eb39..0000000
--- a/src/fec/rs-common.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Stuff common to all the general-purpose Reed-Solomon codecs
- * Copyright 2004 Phil Karn, KA9Q
- * May be used under the terms of the GNU Lesser General Public License (LGPL)
- */
-
-/* Reed-Solomon codec control block */
-struct rs {
- int mm; /* Bits per symbol */
- int nn; /* Symbols per block (= (1<<mm)-1) */
- data_t *alpha_to; /* log lookup table */
- data_t *index_of; /* Antilog lookup table */
- data_t *genpoly; /* Generator polynomial */
- int nroots; /* Number of generator roots = number of parity symbols */
- int fcr; /* First consecutive root, index form */
- int prim; /* Primitive element, index form */
- int iprim; /* prim-th root of 1, index form */
- int pad; /* Padding bytes in shortened block */
-};
-
-static inline int modnn(struct rs *rs,int x){
- while (x >= rs->nn) {
- x -= rs->nn;
- x = (x >> rs->mm) + (x & rs->nn);
- }
- return x;
-}