~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_radix.c

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
*/
22
22
 
23
23
#include "mysys_priv.h"
24
 
#include <m_string.h>
 
24
#include <mystrings/m_string.h>
25
25
 
26
26
        /* Radixsort */
27
27
 
28
28
void radixsort_for_str_ptr(uchar **base, uint number_of_elements, size_t size_of_element, uchar **buffer)
29
29
{
30
30
  uchar **end,**ptr,**buffer_ptr;
31
 
  uint32 *count_ptr,*count_end,count[256];
 
31
  uint32_t *count_ptr,*count_end,count[256];
32
32
  int pass;
33
33
 
34
34
  end=base+number_of_elements; count_end=count+256;
35
35
  for (pass=(int) size_of_element-1 ; pass >= 0 ; pass--)
36
36
  {
37
 
    bzero((uchar*) count,sizeof(uint32)*256);
 
37
    memset((uchar*) count, 0, sizeof(uint32_t)*256);
38
38
    for (ptr= base ; ptr < end ; ptr++)
39
39
      count[ptr[0][pass]]++;
40
40
    if (count[0] == number_of_elements)