summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/math.h
diff options
context:
space:
mode:
authorMarcus Müller <mueller@kit.edu>2020-02-13 21:01:56 +0100
committerMichael Dickens <michael.dickens@ettus.com>2020-02-14 10:05:12 -0500
commitd39d40c826a1b8e66c4789622c1287d439a26645 (patch)
tree92c7fec137deb5fbe34d764cdbf526116c3c6dbf /gnuradio-runtime/include/gnuradio/math.h
parentaa0bd44efbf8afdfd93d627e486c1427426b76f9 (diff)
runtime/viterbi: get rid of GR_M_LOG2E constant
Constant was only used to emulate log_2 from ln. Which is a strange thing to do on a computer with binary floating point numbers. Which is a superfluous thing to do when you have ::log2 in C++11.
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/math.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/include/gnuradio/math.h b/gnuradio-runtime/include/gnuradio/math.h
index f628a5875c..e4e2d90315 100644
--- a/gnuradio-runtime/include/gnuradio/math.h
+++ b/gnuradio-runtime/include/gnuradio/math.h
@@ -28,7 +28,7 @@
* compile. GR_M_PI actually works with C++ but is defined here for the sake
* of consistency.
*/
-#define GR_M_LOG2E 1.4426950408889634074 /* log_2 e */
+
#define GR_M_PI 3.14159265358979323846 /* pi */
#define GR_M_PI_4 0.78539816339744830961566084582 /* pi/4 */
#define GR_M_TWOPI 6.28318530717958647692 /* 2*pi */