~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_bitmap.c

  • Committer: Monty Taylor
  • Date: 2008-08-22 04:52:07 UTC
  • mto: (365.1.2 drizzle)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: monty@inaugust.com-20080822045207-v5hswhr5jrmo5djl
Got rid of all instances of ~0

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
  map->last_word_ptr= map->bitmap + no_words_in_map(map)-1;
63
63
  switch (no_bytes_in_map(map) & 3) {
64
64
  case 1:
65
 
    map->last_word_mask= ~0U;
 
65
    map->last_word_mask= UINT32_MAX;
66
66
    ptr[0]= mask;
67
67
    return;
68
68
  case 2:
69
 
    map->last_word_mask= ~0U;
 
69
    map->last_word_mask= UINT32_MAX;
70
70
    ptr[0]= 0;
71
71
    ptr[1]= mask;
72
72
    return;
73
73
  case 3:
74
 
    map->last_word_mask= 0U;
 
74
    map->last_word_mask= 0;
75
75
    ptr[2]= mask;
76
76
    ptr[3]= 0xFFU;
77
77
    return;
239
239
  uchar *m= (uchar *)map->bitmap;
240
240
 
241
241
  assert(map->bitmap &&
242
 
              (prefix_size <= map->n_bits || prefix_size == (uint) ~0));
 
242
              (prefix_size <= map->n_bits || prefix_size == UINT32_MAX));
243
243
  set_if_smaller(prefix_size, map->n_bits);
244
244
  if ((prefix_bytes= prefix_size / 8))
245
245
    memset(m, 0xff, prefix_bytes);