From 2bba7d602744ccd6dab26940661f0fdfbf231af8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 25 Dec 2016 21:34:03 +0100 Subject: Refactor flowgraph and puncturing rules --- src/PuncturingRule.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/PuncturingRule.cpp') 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 . */ -#ifdef HAVE_CONFIG_H -//#include "config.h" -#endif - #include "PcDebug.h" #include "PuncturingRule.h" #include -#include - 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; } -- cgit v1.2.3