~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_radix.cc

  • Committer: Brian Aker
  • Date: 2010-05-27 01:25:56 UTC
  • mfrom: (1567.1.4 new-staging)
  • Revision ID: brian@gaz-20100527012556-5zgkirkl7swbigd6
Merge of Brian, Paul. PBXT compile issue, and test framework cleanup. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
  2-3 times faster than quicksort
21
21
*/
22
22
 
23
 
#include "mysys_priv.h"
24
 
#include <mystrings/m_string.h>
 
23
#include "config.h"
 
24
 
 
25
#include "drizzled/internal/my_sys.h"
 
26
#include "drizzled/internal/m_string.h"
 
27
 
 
28
namespace drizzled
 
29
{
 
30
namespace internal
 
31
{
25
32
 
26
33
        /* Radixsort */
27
34
 
28
 
void radixsort_for_str_ptr(uchar **base, uint number_of_elements, size_t size_of_element, uchar **buffer)
 
35
void radixsort_for_str_ptr(unsigned char **base, uint32_t number_of_elements, size_t size_of_element, unsigned char **buffer)
29
36
{
30
 
  uchar **end,**ptr,**buffer_ptr;
 
37
  unsigned char **end,**ptr,**buffer_ptr;
31
38
  uint32_t *count_ptr,*count_end,count[256];
32
39
  int pass;
33
40
 
52
59
  next:;
53
60
  }
54
61
}
 
62
 
 
63
} /* namespace internal */
 
64
} /* namespace drizzled */