diff options
Diffstat (limited to 'gr-dtv/lib/atsc/atsc_fs_checker_impl.h')
-rw-r--r-- | gr-dtv/lib/atsc/atsc_fs_checker_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-dtv/lib/atsc/atsc_fs_checker_impl.h b/gr-dtv/lib/atsc/atsc_fs_checker_impl.h index 2f8325277b..b14cba00e5 100644 --- a/gr-dtv/lib/atsc/atsc_fs_checker_impl.h +++ b/gr-dtv/lib/atsc/atsc_fs_checker_impl.h @@ -32,7 +32,7 @@ namespace dtv { class atsc_fs_checker_impl : public atsc_fs_checker { private: - static const int SRSIZE = 1024; // must be power of two + static constexpr int SRSIZE = 1024; // must be power of two int d_index; // points at oldest sample float d_sample_sr[SRSIZE]; // sample shift register atsc::syminfo d_tag_sr[SRSIZE]; // tag shift register @@ -40,10 +40,10 @@ private: int d_field_num; int d_segment_num; - static const int OFFSET_511 = 4; // offset to second PN 63 pattern - static const int LENGTH_511 = 511; // length of PN 63 pattern - static const int OFFSET_2ND_63 = 578; // offset to second PN 63 pattern - static const int LENGTH_2ND_63 = 63; // length of PN 63 pattern + static constexpr int OFFSET_511 = 4; // offset to second PN 63 pattern + static constexpr int LENGTH_511 = 511; // length of PN 63 pattern + static constexpr int OFFSET_2ND_63 = 578; // offset to second PN 63 pattern + static constexpr int LENGTH_2ND_63 = 63; // length of PN 63 pattern inline static int wrap(int index) { return index & (SRSIZE - 1); } inline static int incr(int index) { return wrap(index + 1); } |