source: trunk/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/soft/sort/sort.h @ 134

Last change on this file since 134 was 134, checked in by kane, 13 years ago

add multi write buffer in cc_xcache_v4

File size: 563 bytes
Line 
1#ifndef sort_h
2#define sort_h
3
4#include "../define.h"
5
6typedef enum
7  {
8    SORT_INSERTION,
9    SORT_SELECTION,
10    SORT_BUBBLE,
11    SORT_SHELL
12  } sort_t;
13
14void         sort            (unsigned int *base, unsigned int n, sort_t type);
15void         sort_insertion  (unsigned int *base, unsigned int n);
16void         sort_selection  (unsigned int *base, unsigned int n);
17void         sort_bubble     (unsigned int *base, unsigned int n);
18void         sort_shell      (unsigned int *base, unsigned int n);
19const char * sort_str        (sort_t x);
20
21#endif //sort_h
Note: See TracBrowser for help on using the repository browser.