~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_bit.h

  • Committer: Brian Aker
  • Date: 2009-02-21 00:18:15 UTC
  • Revision ID: brian@tangent.org-20090221001815-x20e8h71e984lvs1
Completion (?) of uint conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  /* The following code is a bit faster on 16 bit machines than if we would
27
27
     only shift v */
28
28
  uint32_t v2=(uint32_t) (v >> 32);
29
 
  return (uint) (unsigned char) (_my_bits_nbits[(unsigned char)  v] +
 
29
  return (uint32_t) (unsigned char) (_my_bits_nbits[(unsigned char)  v] +
30
30
                         _my_bits_nbits[(unsigned char) (v >> 8)] +
31
31
                         _my_bits_nbits[(unsigned char) (v >> 16)] +
32
32
                         _my_bits_nbits[(unsigned char) (v >> 24)] +