commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/06: move fec polar decoder D_LLR_FACTOR


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/06: move fec polar decoder D_LLR_FACTOR into cpp
Date: Tue, 16 Aug 2016 16:24:32 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit a981e6a18c4f28cc6058fef4167c01ad3dc7d58a
Author: Josh Blum <address@hidden>
Date:   Sat Aug 6 21:38:52 2016 -0700

    move fec polar decoder D_LLR_FACTOR into cpp
    
    Class constants need to be defined in the C++ source or linker issues occur.
---
 gr-fec/include/gnuradio/fec/polar_decoder_common.h | 2 +-
 gr-fec/lib/polar_decoder_common.cc                 | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gr-fec/include/gnuradio/fec/polar_decoder_common.h 
b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
index a39ee4f..13b25ea 100644
--- a/gr-fec/include/gnuradio/fec/polar_decoder_common.h
+++ b/gr-fec/include/gnuradio/fec/polar_decoder_common.h
@@ -68,7 +68,7 @@ namespace gr {
         bool set_frame_size(unsigned int frame_size){return false;};
 
       private:
-        static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR = -2.19722458f;
+        static BOOST_CONSTEXPR_OR_CONST float D_LLR_FACTOR;
         unsigned int d_frozen_bit_counter;
 
       protected:
diff --git a/gr-fec/lib/polar_decoder_common.cc 
b/gr-fec/lib/polar_decoder_common.cc
index 8fc2e37..1d4a21a 100644
--- a/gr-fec/lib/polar_decoder_common.cc
+++ b/gr-fec/lib/polar_decoder_common.cc
@@ -34,6 +34,8 @@ namespace gr {
   namespace fec {
     namespace code {
 
+      const float polar_decoder_common::D_LLR_FACTOR = -2.19722458f;
+
       polar_decoder_common::polar_decoder_common(int block_size, int 
num_info_bits,
                                                  std::vector<int> 
frozen_bit_positions,
                                                  std::vector<char> 
frozen_bit_values) :



reply via email to

[Prev in Thread] Current Thread [Next in Thread]