Searched refs:BUFSIZE (Results 1 – 3 of 3) sorted by relevance
/lk-master/app/tests/ |
A D | benchmarks.c | 21 const size_t BUFSIZE = (1024*1024); variable 25 uint32_t *buf = malloc(BUFSIZE); in bench_set_overhead() 43 void *buf = malloc(BUFSIZE); in bench_memset() 51 memset(buf, 0, BUFSIZE); in bench_memset() 55 size_t total_bytes = BUFSIZE * ITER; in bench_memset() 66 type *buf = malloc(BUFSIZE); \ 94 uint32_t *buf = malloc(BUFSIZE); in bench_cset() 115 size_t total_bytes = BUFSIZE * ITER; in bench_cset() 124 uint8_t *buf = malloc(BUFSIZE); in bench_memcpy() 132 memcpy(buf, buf + BUFSIZE / 2, BUFSIZE / 2); in bench_memcpy() [all …]
|
/lk-master/external/lib/cksum/ |
A D | debug.c | 96 #define BUFSIZE 0x1000 in cmd_cksum_bench() macro 105 buf = malloc(BUFSIZE); in cmd_cksum_bench() 115 printf("buffer at %p, size %u\n", buf, BUFSIZE); in cmd_cksum_bench() 120 crc = crc32(crc, buf, BUFSIZE); in cmd_cksum_bench() 124 …printf("took %llu usecs to crc32 %d bytes (%lld bytes/sec)\n", t, BUFSIZE * ITER, (BUFSIZE * ITER)… in cmd_cksum_bench() 130 crc = adler32(crc, buf, BUFSIZE); in cmd_cksum_bench() 134 …printf("took %llu usecs to adler32 %d bytes (%lld bytes/sec)\n", t, BUFSIZE * ITER, (BUFSIZE * ITE… in cmd_cksum_bench()
|
/lk-master/lib/minip/ |
A D | lk_console.c | 108 #define BUFSIZE 1470 in cmd_minip() macro 111 buf = malloc(BUFSIZE); in cmd_minip() 117 memset(buf, 0x00, BUFSIZE); in cmd_minip() 123 if (udp_send(buf, BUFSIZE, handle) != 0) { in cmd_minip() 130 uint64_t total_count = (uint64_t)count * BUFSIZE; in cmd_minip() 136 #undef BUFSIZE in cmd_minip()
|
Completed in 6 milliseconds