diff options
author | Andrej Rode <mail@andrejro.de> | 2018-02-17 23:24:10 +0100 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2018-02-17 23:24:10 +0100 |
commit | 886ce0f13b4135c1206c26786e06a524e92fc271 (patch) | |
tree | fdf89824d4a5925c44f9b30d1e8d44b713c46b19 /gr-analog/lib/frequency_modulator_fc_impl.cc | |
parent | 201031790ec8c855ec2eaf7883652ad37b164208 (diff) |
math: replace M_PI and derivatives with GR_M_PI defines
Diffstat (limited to 'gr-analog/lib/frequency_modulator_fc_impl.cc')
-rw-r--r-- | gr-analog/lib/frequency_modulator_fc_impl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-analog/lib/frequency_modulator_fc_impl.cc b/gr-analog/lib/frequency_modulator_fc_impl.cc index 56fa0f7c17..0c7f9873b1 100644 --- a/gr-analog/lib/frequency_modulator_fc_impl.cc +++ b/gr-analog/lib/frequency_modulator_fc_impl.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004,2010-2012 Free Software Foundation, Inc. + * Copyright 2004,2010-2012,2018 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -27,6 +27,7 @@ #include "frequency_modulator_fc_impl.h" #include <gnuradio/io_signature.h> #include <gnuradio/fxpt.h> +#include <gnuradio/math.h> #include <cmath> namespace gr { @@ -63,7 +64,7 @@ namespace gr { d_phase = d_phase + d_sensitivity * in[i]; //place phase in [-pi, +pi[ - #define F_PI ((float)(M_PI)) + #define F_PI ((float)(GR_M_PI)) d_phase = std::fmod(d_phase + F_PI, 2.0f * F_PI) - F_PI; float oi, oq; |