diff options
author | Marcus Müller <marcus.mueller@ettus.com> | 2018-01-28 16:31:09 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-03 15:04:56 +0100 |
commit | beff3d708549cce50fd8da14df7992ae37903309 (patch) | |
tree | 56811624efc595cdcd07bc0cbebe65429579e928 /gnuradio-runtime | |
parent | 127e4a4d569bbeab5417134389e2d642c20f807a (diff) |
fixup! fixup! Use type-generic or float versions of cmath functions where appropriate.
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/fxpt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/include/gnuradio/fxpt.h b/gnuradio-runtime/include/gnuradio/fxpt.h index abddfc1f5..61c7400d0 100644 --- a/gnuradio-runtime/include/gnuradio/fxpt.h +++ b/gnuradio-runtime/include/gnuradio/fxpt.h @@ -53,7 +53,7 @@ namespace gr { float_to_fixed(float x) { // Fold x into -PI to PI. - int d = (int)floorf(x/TAU+0.5); + int d = (int)std::floor(x/TAU+0.5); x -= d*TAU; // And convert to an integer. return (int32_t) ((float) x * TWO_TO_THE_31 / PI); |