diff options
author | Johnathan Corgan | 2009-10-16 12:22:42 -0700 |
---|---|---|
committer | Johnathan Corgan | 2009-11-03 07:21:42 -0800 |
commit | 96c92bb05fdbd2d42bb485bee46e63931d465cc3 (patch) | |
tree | 0fe809434adc8a1679eb079cce2fb758b3991928 /gr-pager/src/pageri_util.cc | |
parent | 5a0887f9138dc4dd0e8e09bb859a513bd7c971e2 (diff) | |
download | gnuradio-96c92bb05fdbd2d42bb485bee46e63931d465cc3.tar.gz gnuradio-96c92bb05fdbd2d42bb485bee46e63931d465cc3.tar.bz2 gnuradio-96c92bb05fdbd2d42bb485bee46e63931d465cc3.zip |
Directory reorganization to newer layout
Top-level applications go into 'apps' (previous commit)
C++ library build goes into 'lib'
SWIG generation goes into 'swig'
Pure python modules/code goes into 'python'
Diffstat (limited to 'gr-pager/src/pageri_util.cc')
-rw-r--r-- | gr-pager/src/pageri_util.cc | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gr-pager/src/pageri_util.cc b/gr-pager/src/pageri_util.cc deleted file mode 100644 index bdd095706..000000000 --- a/gr-pager/src/pageri_util.cc +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2006 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * GNU Radio is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3, or (at your option) - * any later version. - * - * GNU Radio is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Radio; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 51 Franklin Street, - * Boston, MA 02110-1301, USA. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <pageri_util.h> - -unsigned char pageri_reverse_bits8(unsigned char val) -{ - // This method was attributed to Rich Schroeppel in the Programming - // Hacks section of Beeler, M., Gosper, R. W., and Schroeppel, R. - // HAKMEM. MIT AI Memo 239, Feb. 29, 1972. - // - // Reverses 8 bits in 5 machine operations with 64 bit arch - return (val * 0x0202020202ULL & 0x010884422010ULL) % 1023; -} - -gr_int32 pageri_reverse_bits32(gr_int32 val) -{ - gr_int32 out = 0x00000000; - out |= (pageri_reverse_bits8((val >> 24) & 0x000000FF) ); - out |= (pageri_reverse_bits8((val >> 16) & 0x000000FF) << 8); - out |= (pageri_reverse_bits8((val >> 8) & 0x000000FF) << 16); - out |= (pageri_reverse_bits8((val ) & 0x000000FF) << 24); - return out; -} |