diff options
author | Josh Blum | 2011-01-17 16:37:45 -0800 |
---|---|---|
committer | Josh Blum | 2011-01-17 16:37:45 -0800 |
commit | 48f9ca90e0cbcbfe67b0e10889c60928d9be5c49 (patch) | |
tree | f6102da8592c252808ab0940063f3b2ad9ef24a4 /gnuradio-core/src/lib/runtime | |
parent | 31bbbec88b19230eb37b197d7623c3671e57837e (diff) | |
download | gnuradio-48f9ca90e0cbcbfe67b0e10889c60928d9be5c49.tar.gz gnuradio-48f9ca90e0cbcbfe67b0e10889c60928d9be5c49.tar.bz2 gnuradio-48f9ca90e0cbcbfe67b0e10889c60928d9be5c49.zip |
gr math simplification:
Replaces gr_gcd, gr_isnan, and gr_signbit one-time instances with boot math calls.
No point in wrapping these utility math functions into gnuradio when they are
1) provided by boost
2) only called once
Removes gr_math.cc, and configure checks for isnan.
Diffstat (limited to 'gnuradio-core/src/lib/runtime')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_buffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_buffer.cc b/gnuradio-core/src/lib/runtime/gr_buffer.cc index 03d5a8738..fa3722714 100644 --- a/gnuradio-core/src/lib/runtime/gr_buffer.cc +++ b/gnuradio-core/src/lib/runtime/gr_buffer.cc @@ -31,6 +31,7 @@ #include <iostream> #include <assert.h> #include <algorithm> +#include <boost/math/common_factor_rt.hpp> static long s_buffer_count = 0; // counts for debugging storage mgmt static long s_buffer_reader_count = 0; @@ -73,7 +74,7 @@ static long s_buffer_reader_count = 0; static long minimum_buffer_items (long type_size, long page_size) { - return page_size / gr_gcd (type_size, page_size); + return page_size / boost::math::gcd (type_size, page_size); } |