diff options
author | Philip Balister | 2012-03-12 12:18:50 -0400 |
---|---|---|
committer | Philip Balister | 2012-03-12 12:18:50 -0400 |
commit | 0cdbdc6e9f9c56e2820fc9474e108213be05325c (patch) | |
tree | 2c9729fe2d7eb910ad177551c84a18e45b037423 /gnuradio-core/src | |
parent | 502d7466f7659154b015e6ce94eafad569604cb1 (diff) | |
download | gnuradio-0cdbdc6e9f9c56e2820fc9474e108213be05325c.tar.gz gnuradio-0cdbdc6e9f9c56e2820fc9474e108213be05325c.tar.bz2 gnuradio-0cdbdc6e9f9c56e2820fc9474e108213be05325c.zip |
gr_fxpt.c : Remove unused code.
The code in the #if 0 block is in the header file. Remove this section to
avoid confusing people trying to figure out what this does.
Signed-off-by: Philip Balister <philip@opensdr.com>
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_fxpt.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gnuradio-core/src/lib/general/gr_fxpt.cc b/gnuradio-core/src/lib/general/gr_fxpt.cc index fae02c71e..67f44a471 100644 --- a/gnuradio-core/src/lib/general/gr_fxpt.cc +++ b/gnuradio-core/src/lib/general/gr_fxpt.cc @@ -33,24 +33,3 @@ const float gr_fxpt::s_sine_table[1 << NBITS][2] = { const float gr_fxpt::PI = 3.14159265358979323846; const float gr_fxpt::TWO_TO_THE_31 = 2147483648.0; -#if 0 -/* - * Compute sine using table lookup with linear interpolation. - * Each table entry contains slope and intercept. - */ -float -gr_fxpt::sin (gr_int32 x) -{ - gr_uint32 ux = x; - int index = ux >> (WORDBITS - NBITS); - return s_sine_table[index][0] * (ux >> 1) + s_sine_table[index][1]; -} - -float -gr_fxpt::cos (gr_int32 x) -{ - gr_uint32 ux = x + 0x40000000; - int index = ux >> (WORDBITS - NBITS); - return s_sine_table[index][0] * (ux >> 1) + s_sine_table[index][1]; -} -#endif |