~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_bitmap.cc

  • Committer: Nathan Williams
  • Date: 2009-06-24 23:48:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1082.
  • Revision ID: nathanlws@gmail.com-20090624234815-q51znoiozkas596c
Converted all cmin/cmax usages in the mysys directory to std::min/max.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <mystrings/m_string.h>
35
35
#include <mysys/my_bit.h>
36
36
 
 
37
#include <algorithm>
 
38
 
 
39
using namespace std;
 
40
 
37
41
void create_last_word_mask(MY_BITMAP *map)
38
42
{
39
43
  /* Get the number of used bits (1..8) in the last byte */
282
286
 
283
287
  assert(map->bitmap && map2->bitmap);
284
288
 
285
 
  end= to+cmin(len,len2);
 
289
  end= to+min(len,len2);
286
290
  *map2->last_word_ptr&= ~map2->last_word_mask; /*Clear last bits in map2*/
287
291
  while (to < end)
288
292
    *to++ &= *from++;