Last change
on this file since 685 was
134,
checked in by kane, 14 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 | |
---|
6 | typedef enum |
---|
7 | { |
---|
8 | SORT_INSERTION, |
---|
9 | SORT_SELECTION, |
---|
10 | SORT_BUBBLE, |
---|
11 | SORT_SHELL |
---|
12 | } sort_t; |
---|
13 | |
---|
14 | void sort (unsigned int *base, unsigned int n, sort_t type); |
---|
15 | void sort_insertion (unsigned int *base, unsigned int n); |
---|
16 | void sort_selection (unsigned int *base, unsigned int n); |
---|
17 | void sort_bubble (unsigned int *base, unsigned int n); |
---|
18 | void sort_shell (unsigned int *base, unsigned int n); |
---|
19 | const char * sort_str (sort_t x); |
---|
20 | |
---|
21 | #endif //sort_h |
---|
Note: See
TracBrowser
for help on using the repository browser.