~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_bit.c

  • Committer: Brian Aker
  • Date: 2008-06-30 18:52:15 UTC
  • Revision ID: brian@tangent.org-20080630185215-n0fr4k0gk5hk785c
Remove dead position (should be in config/)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "mysys_priv.h"
17
 
 
18
 
#include <mysys/my_bit.h>
 
16
#include <my_global.h>
 
17
 
 
18
#ifndef HAVE_INLINE
 
19
/* the following will cause all inline functions to be instantiated */
 
20
#define HAVE_INLINE
 
21
#undef STATIC_INLINE
 
22
#define STATIC_INLINE extern
 
23
#endif
 
24
 
 
25
#include <my_bit.h>
19
26
 
20
27
const char _my_bits_nbits[256] = {
21
28
  0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4,
39
46
/*
40
47
  perl -e 'print map{", 0x".unpack H2,pack B8,unpack b8,chr$_}(0..255)'
41
48
*/
42
 
const unsigned char _my_bits_reverse_table[256]={
 
49
const uchar _my_bits_reverse_table[256]={
43
50
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0, 0x10, 0x90, 0x50, 0xD0, 0x30,
44
51
0xB0, 0x70, 0xF0, 0x08, 0x88, 0x48, 0xC8, 0x28, 0xA8, 0x68, 0xE8, 0x18, 0x98,
45
52
0x58, 0xD8, 0x38, 0xB8, 0x78, 0xF8, 0x04, 0x84, 0x44, 0xC4, 0x24, 0xA4, 0x64,