summaryrefslogtreecommitdiff
path: root/gr-fec/lib/polar_decoder_sc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/lib/polar_decoder_sc.cc')
-rw-r--r--gr-fec/lib/polar_decoder_sc.cc30
1 files changed, 17 insertions, 13 deletions
diff --git a/gr-fec/lib/polar_decoder_sc.cc b/gr-fec/lib/polar_decoder_sc.cc
index 1b872d0c2a..1412946b0b 100644
--- a/gr-fec/lib/polar_decoder_sc.cc
+++ b/gr-fec/lib/polar_decoder_sc.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
-/*
+/*
* Copyright 2015 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -31,23 +31,25 @@
#include <cmath>
#include <cstdio>
-namespace gr
-{
- namespace fec
- {
+namespace gr {
+ namespace fec {
+ namespace code {
generic_decoder::sptr
- polar_decoder_sc::make(int block_size, int num_info_bits, std::vector<int> frozen_bit_positions,
+ polar_decoder_sc::make(int block_size, int num_info_bits,
+ std::vector<int> frozen_bit_positions,
std::vector<char> frozen_bit_values)
{
- return generic_decoder::sptr(
- new polar_decoder_sc(block_size, num_info_bits, frozen_bit_positions, frozen_bit_values));
+ return generic_decoder::sptr
+ (new polar_decoder_sc(block_size, num_info_bits,
+ frozen_bit_positions,
+ frozen_bit_values));
}
polar_decoder_sc::polar_decoder_sc(int block_size, int num_info_bits,
std::vector<int> frozen_bit_positions,
std::vector<char> frozen_bit_values) :
- polar_decoder_common(block_size, num_info_bits, frozen_bit_positions, frozen_bit_values)
+ polar_decoder_common(block_size, num_info_bits, frozen_bit_positions, frozen_bit_values)
{
d_llr_vec = (float*) volk_malloc(sizeof(float) * block_size * (block_power() + 1), volk_get_alignment());
memset(d_llr_vec, 0, sizeof(float) * block_size * (block_power() + 1));
@@ -89,5 +91,7 @@ namespace gr
}
return llr_bit_decision(llr);
}
+
+ } /* namespace code */
} /* namespace fec */
} /* namespace gr */