From a4a8b57769679cf0fd3f5b4941f246b5e3718ee9 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 4 Aug 2025 10:06:20 +0200 Subject: [PATCH] moved common header includes to common.hh --- common.hh | 18 ++++++++++++++++++ decode.cc | 16 ---------------- encode.cc | 17 ----------------- 3 files changed, 18 insertions(+), 33 deletions(-) diff --git a/common.hh b/common.hh index da36a1d..f8fd800 100644 --- a/common.hh +++ b/common.hh @@ -6,6 +6,24 @@ Copyright 2025 Ahmet Inan #pragma once +#include +#include +#include +#include +#include +#include +namespace DSP { using std::abs; using std::min; using std::cos; using std::sin; } +#include "xorshift.hh" +#include "complex.hh" +#include "decibel.hh" +#include "bitman.hh" +#include "quick.hh" +#include "wav.hh" +#include "pcm.hh" +#include "fft.hh" +#include "mls.hh" +#include "psk.hh" +#include "qam.hh" #include "crc.hh" #include "polar_tables.hh" #include "hadamard_encoder.hh" diff --git a/decode.cc b/decode.cc index 37b98a6..91f33d7 100644 --- a/decode.cc +++ b/decode.cc @@ -4,30 +4,14 @@ OFDM modem decoder Copyright 2021 Ahmet Inan */ -#include -#include -#include -#include -#include -namespace DSP { using std::abs; using std::min; using std::cos; using std::sin; } #include "common.hh" #include "schmidl_cox.hh" #include "bip_buffer.hh" #include "theil_sen.hh" -#include "xorshift.hh" -#include "complex.hh" -#include "decibel.hh" #include "blockdc.hh" #include "hilbert.hh" #include "phasor.hh" -#include "bitman.hh" #include "delay.hh" -#include "wav.hh" -#include "pcm.hh" -#include "fft.hh" -#include "mls.hh" -#include "psk.hh" -#include "qam.hh" #include "polar_list_decoder.hh" #include "hadamard_decoder.hh" diff --git a/encode.cc b/encode.cc index 91823c6..ddb301d 100644 --- a/encode.cc +++ b/encode.cc @@ -4,25 +4,8 @@ OFDM modem encoder Copyright 2021 Ahmet Inan */ -#include -#include -#include -#include -#include -#include #include "common.hh" -#include "xorshift.hh" -#include "complex.hh" #include "utils.hh" -#include "quick.hh" -#include "bitman.hh" -#include "decibel.hh" -#include "fft.hh" -#include "wav.hh" -#include "pcm.hh" -#include "mls.hh" -#include "psk.hh" -#include "qam.hh" #include "polar_encoder.hh" template