diff options
author | Josh Blum | 2011-01-17 17:26:09 -0800 |
---|---|---|
committer | Josh Blum | 2011-01-17 17:26:09 -0800 |
commit | 089fe0e8b2cd02e90fc4c095297128c771fa43fa (patch) | |
tree | ab362edad2d9c8dc5c9c07ed246a4e5980fce3ec /gnuradio-core/src/lib/general/gr_fxpt.cc | |
parent | 31bbbec88b19230eb37b197d7623c3671e57837e (diff) | |
download | gnuradio-089fe0e8b2cd02e90fc4c095297128c771fa43fa.tar.gz gnuradio-089fe0e8b2cd02e90fc4c095297128c771fa43fa.tar.bz2 gnuradio-089fe0e8b2cd02e90fc4c095297128c771fa43fa.zip |
gr fxpt static const fix:
Initialize PI and TWO_TO_THE_31 the standard portable c++ way.
No need for "gcc 4.x fix".
See http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.12
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_fxpt.cc')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_fxpt.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/general/gr_fxpt.cc b/gnuradio-core/src/lib/general/gr_fxpt.cc index e752364a5..fae02c71e 100644 --- a/gnuradio-core/src/lib/general/gr_fxpt.cc +++ b/gnuradio-core/src/lib/general/gr_fxpt.cc @@ -30,9 +30,8 @@ const float gr_fxpt::s_sine_table[1 << NBITS][2] = { #include "sine_table.h" }; -// gcc 4.x fix -const float gr_fxpt::TWO_TO_THE_31; -const float gr_fxpt::PI; +const float gr_fxpt::PI = 3.14159265358979323846; +const float gr_fxpt::TWO_TO_THE_31 = 2147483648.0; #if 0 /* |