From 0cdbdc6e9f9c56e2820fc9474e108213be05325c Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Mon, 12 Mar 2012 12:18:50 -0400 Subject: 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 --- gnuradio-core/src/lib/general/gr_fxpt.cc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'gnuradio-core/src') 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 -- cgit