openbsd-ports/comms/gnuradio/patches/patch-gr-digital_lib_symbol_sync_cc_impl_cc
2022-03-11 18:26:24 +00:00

28 lines
988 B
Plaintext

[PATCH] boost: remove deprecated math/common_factor.hpp
2c767bb260a25b415e8c9c4b3ea37280b2127cec
Index: gr-digital/lib/symbol_sync_cc_impl.cc
--- gr-digital/lib/symbol_sync_cc_impl.cc.orig
+++ gr-digital/lib/symbol_sync_cc_impl.cc
@@ -25,9 +25,9 @@
#endif
#include "symbol_sync_cc_impl.h"
+#include <gnuradio/integer_math.h>
#include <gnuradio/io_signature.h>
#include <gnuradio/math.h>
-#include <boost/math/common_factor.hpp>
#include <stdexcept>
namespace gr {
@@ -116,7 +116,7 @@ symbol_sync_cc_impl::symbol_sync_cc_impl(enum ted_type
throw std::runtime_error("unable to create interpolating_resampler_ccf");
// Block Internal Clocks
- d_interps_per_symbol_n = boost::math::lcm(d_ted->inputs_per_symbol(), d_osps_n);
+ d_interps_per_symbol_n = GR_LCM(d_ted->inputs_per_symbol(), d_osps_n);
d_interps_per_ted_input_n = d_interps_per_symbol_n / d_ted->inputs_per_symbol();
d_interps_per_output_sample_n = d_interps_per_symbol_n / d_osps_n;