X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsorter%2Fdebug%2Fradix-asio-test.c;h=257922702a9a73431f72e18d8c09ef33ece94abb;hb=d661e61c3019201dddd5d870ff9aabf23ec7e2f2;hp=6996766a30fb33389813161deb4060ed82e66ae7;hpb=fa7aa6d9457616ce28f97c83eaa616d0ff276870;p=libucw.git diff --git a/ucw/sorter/debug/radix-asio-test.c b/ucw/sorter/debug/radix-asio-test.c index 6996766a..25792270 100644 --- a/ucw/sorter/debug/radix-asio-test.c +++ b/ucw/sorter/debug/radix-asio-test.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -35,7 +36,7 @@ static struct asio_queue io_queue; int main(int argc, char **argv) { - uns files, bufsize; + uint files, bufsize; u64 total_size; if (argc != 4 || cf_parse_int(argv[1], (int*) &files) || @@ -46,7 +47,7 @@ int main(int argc, char **argv) return 1; } u64 cnt, cnt_rep; - uns cnt_ms; + uint cnt_ms; int fd[files]; byte name[files][16]; struct asio_request *req[files]; @@ -63,14 +64,14 @@ int main(int argc, char **argv) ASSERT(in_fd >= 0); ASSERT(!(total_size % bufsize)); P_INIT; - for (uns i=0; iop = ASIO_WRITE_BACK; r->fd = in_fd; r->len = bufsize; byte *xbuf = r->buffer; - for (uns j=0; j> 20), files, bufsize); P_INIT; - for (uns i=0; ibuffer, rd->buffer, bufsize); asio_put(rr); #else - for (uns j=0; jbuffer[j] = round+i+j; #endif r->op = ASIO_WRITE_BACK; @@ -123,7 +124,7 @@ int main(int argc, char **argv) req[i] = asio_get(&io_queue); } } - for (uns i=0; iop = ASIO_READ; @@ -154,7 +155,7 @@ int main(int argc, char **argv) } P_FINAL; - for (uns i=0; i