Go to the source code of this file.
◆ SortProc
typedef void(* SortProc) (int array[N]) |
◆ SortType
Enumerator |
---|
kSKQSort | |
kSKHeap | |
kQSort | |
kStdSort | |
Definition at line 95 of file SortBench.cpp.
◆ Type
Enumerator |
---|
kRand | |
kRandN | |
kFore | |
kBack | |
kSame | |
Definition at line 56 of file SortBench.cpp.
◆ backward_proc()
static void backward_proc |
( |
int |
array[N] | ) |
|
|
static |
◆ forward_proc()
static void forward_proc |
( |
int |
array[N] | ) |
|
|
static |
◆ int_compare()
static int int_compare |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
Definition at line 80 of file SortBench.cpp.
80 {
81 const int ai = *(
const int*)
a;
82 const int bi = *(
const int*)
b;
83 return ai < bi ? -1 : (ai > bi);
84 }
◆ NewQSort()
◆ NewSkHeap()
◆ NewSkQSort()
◆ NewStdSort()
◆ qsort_sort()
static void qsort_sort |
( |
int |
array[N] | ) |
|
|
static |
Definition at line 87 of file SortBench.cpp.
87 {
89}
static int int_compare(const void *a, const void *b)
◆ rand_proc()
static void rand_proc |
( |
int |
array[N] | ) |
|
|
static |
◆ randN_proc()
static void randN_proc |
( |
int |
array[N] | ) |
|
|
static |
Definition at line 28 of file SortBench.cpp.
28 {
31 for (
int i = 0;
i <
N; ++
i) {
32 array[
i] = rand.
nextU() % mod;
33 }
34}
◆ same_proc()
static void same_proc |
( |
int |
array[N] | ) |
|
|
static |
◆ skheap_sort()
static void skheap_sort |
( |
int |
array[N] | ) |
|
|
static |
Definition at line 75 of file SortBench.cpp.
75 {
76 SkTHeapSort<int>(array,
N);
77}
◆ skqsort_sort()
static void skqsort_sort |
( |
int |
array[N] | ) |
|
|
static |
Definition at line 71 of file SortBench.cpp.
71 {
72 SkTQSort<int>(array, array +
N);
73}
◆ stdsort_sort()
static void stdsort_sort |
( |
int |
array[N] | ) |
|
|
static |
Definition at line 91 of file SortBench.cpp.
91 {
93}
static std::vector< SkPDFIndirectReference > sort(const THashSet< SkPDFIndirectReference > &src)
◆ fName
◆ fProc
const struct { ... } gRec[] |
Initial value:= {
}
static void randN_proc(int array[N])
static void backward_proc(int array[N])
static void rand_proc(int array[N])
static void same_proc(int array[N])
static void forward_proc(int array[N])
const struct { ... } gSorts[] |
Initial value:= {
}
static void qsort_sort(int array[N])
static void skheap_sort(int array[N])
static void stdsort_sort(int array[N])
static void skqsort_sort(int array[N])