summaryrefslogtreecommitdiffstats
path: root/src/PuncturingRule.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-25 21:34:03 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-25 21:34:03 +0100
commit2bba7d602744ccd6dab26940661f0fdfbf231af8 (patch)
tree590a5808497da3b621e29239cd56db6c89c2d6a9 /src/PuncturingRule.cpp
parentb5fd4a6ab6ac92af2141233f802e71c861cd89f4 (diff)
downloaddabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.tar.gz
dabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.tar.bz2
dabmod-2bba7d602744ccd6dab26940661f0fdfbf231af8.zip
Refactor flowgraph and puncturing rules
Diffstat (limited to 'src/PuncturingRule.cpp')
-rw-r--r--src/PuncturingRule.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/PuncturingRule.cpp b/src/PuncturingRule.cpp
index 77668aa..ee5bfa0 100644
--- a/src/PuncturingRule.cpp
+++ b/src/PuncturingRule.cpp
@@ -19,42 +19,24 @@
along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifdef HAVE_CONFIG_H
-//#include "config.h"
-#endif
-
#include "PcDebug.h"
#include "PuncturingRule.h"
#include <stdio.h>
-#include <stdexcept>
-
PuncturingRule::PuncturingRule(
const size_t length,
const uint32_t pattern) :
d_length(length),
d_pattern(pattern)
-{
- PDEBUG("PuncturingRule::PuncturingRule(%zu, 0x%x) @ %p\n",
- length, pattern, this);
-}
-
-
-PuncturingRule::~PuncturingRule()
-{
- PDEBUG("PuncturingRule::~PuncturingRule() @ %p\n", this);
-}
-
+{ }
size_t PuncturingRule::bit_size() const
{
-// fprintf(stderr, "Calling bit_size()");
size_t bits = 0;
for (uint32_t mask = 0x80000000; mask != 0; mask >>= 1) {
if (d_pattern & mask) {
++bits;
}
}
-// fprintf(stderr, " -> return %i\n", bits);
return bits;
}