diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2021-07-02 16:43:41 -0400 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-07-06 04:37:02 -0700 |
commit | dc187b5597779b14d0de4087db4aa54752a15d07 (patch) | |
tree | 9db6c081c9ab5872114adaa50afa99dc47010fa2 /mpm | |
parent | 91a56d083afbc8792ea3ba25a6221ff39a47fdbc (diff) | |
download | uhd-dc187b5597779b14d0de4087db4aa54752a15d07.tar.gz uhd-dc187b5597779b14d0de4087db4aa54752a15d07.tar.bz2 uhd-dc187b5597779b14d0de4087db4aa54752a15d07.zip |
core: remove boost::math in favor of std cmath
YA Boost removal!!!
Justification
---
const int if_freq_sign = boost::math::sign(fe_conn.get_if_freq());
_dsp_freq_offset = if_freq * (-if_freq_sign);
// boost::math::sign : 1 if x > 0, -1 if x < 0, and 0 if x is zero.
// ==> if if_freq_sign > 0 then * by -1 else +1 (effectively)
// std::signbit : true if arg is negative, false otherwise
// ==> need 'not' of input argument to invert for same result as prior algorithm
double fe_if_freq = fe_conn.get_if_freq();
if (!std::signbit(fe_if_freq)) {
if_freq *= -1.0;
}
---
The above should result in the same algorithm except possibly
if fe_if_freq is exactly 0.0 in which case the results might be
off by the sign (+0.0 versus -0.0).
Diffstat (limited to 'mpm')
0 files changed, 0 insertions, 0 deletions