326d0de0b9da9299a70cbd621fb49f797d82fedc
5 #define FAKE_MALLOC_INIT(words, name) \
6 uint32_t heap_##name[words]; \
7 const size_t max_alloc_##name = (words) * sizeof(uint32_t); \
8 size_t cur_pos_##name; \
9 void* fake_malloc_##name( size_t size ) \
11 static bool init = false; \
16 if(cur_pos_##name < (words)) { \
17 void *ptr = (void*) &heap_##name[cur_pos_##name]; \
18 cur_pos_##name += size & ~((uint32_t)3) + 1; \
32 n_squared_sort (float * value
, int * index
, int len
);
35 radix_sort_tuples (int * value
, int * index
, int len
, int radix_bits
);
38 insertion_sort (float * value
, int * index
, int len
);
41 quicksort (float * array
, int * index
, int len
);
43 /* This defines the length at quicksort switches to insertion sort */
49 #define RADIX_BITS (8)
53 #endif /* _TAV_SORT_H_ */