-
Notifications
You must be signed in to change notification settings - Fork 0
/
tool.c
81 lines (70 loc) · 1.12 KB
/
tool.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include "tool.h"
#include <math.h>
int ltest() {
chunk_t chunk = {0};
int k;
uint32_t count =0;
chunk_init(&chunk);
for( k=0; k<2<<24; k++ ) {
count++;
chunk_list_push( &chunk, 1 );
}
for( k=0; k<2<<24; k++ ) {
count++;
chunk_list_push( &chunk, 1 );
}
k = 0;
chunk_t *c;
printf("count: %d %d\n",k, count);
return 0;
}
/*
void stest() {
sorter_t *s;
s = sorter_init();
for( int k=0; k<2<<24; k++ ) {
sorter_push( s, 1,k );
}
}*/
/*
void stest1() {
sorter_t *s;
s = sorter_init();
sorter_push(s,1,1);
sorter_push(s,1,2);
sorter_push(s,1,2);
}
void stest3() {
sorter_t *s;
s = sorter_init();
for( int k=1; k<2<<24; k++ ) {
sorter_push( s, k,k);
}
sorter_dump( s );
}
void stest2() {
sorter_t *s;
s = sorter_init();
for( int k=1; k<2<<24; k++ ) {
sorter_push( s, k % 1000,k );
}
sorter_dump( s );
}
void stest4() {
sorter_t *s;
s = sorter_init();
int count=0;
for( int k=1; k<2<<24; k++ ) {
sorter_push( s, k%1000,k );
count++;
}
printf("%d %d\n", count, 2<<24 );
sorter_dump( s );
}
*/
int main() {
// ltest();
// stest3();
// stest2();
// stest4();
}