Lines Matching refs:bytes
9 void test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes));
11 extern void dozero1(void *d, size_t bytes);
12 extern void dozero2(void *d, size_t bytes);
13 extern void dozero3(void *d, size_t bytes);
14 extern void dozero4(void *d, size_t bytes);
15 extern void dozero5(void *d, size_t bytes);
16 extern void dozero6(void *d, size_t bytes);
17 extern void dozero7(void *d, size_t bytes);
23 int bytes; in main() local
32 bytes = strtol(av[1], &ptr, 0); in main()
36 bytes *= 1024; in main()
40 bytes *= 1024 * 1024; in main()
44 bytes *= 1024 * 1024 * 1024; in main()
52 if (bytes <= 0 && (bytes & 127)) { in main()
57 buf = mmap(NULL, bytes * 2, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0); in main()
62 bzero(buf, bytes * 2); in main()
64 test_using("bzero", buf, bytes, (void *)bzero); in main()
66 test_using("dozero1", buf, bytes, dozero1); in main()
67 test_using("dozero2", buf, bytes, dozero2); in main()
68 test_using("dozero3", buf, bytes, dozero3); in main()
69 test_using("dozero4", buf, bytes, dozero4); in main()
70 test_using("dozero5", buf, bytes, dozero5); in main()
71 test_using("dozero6", buf, bytes, dozero6); in main()
72 test_using("dozero7", buf, bytes, dozero7); in main()
78 test_using(const char *ctl, char *buf, int bytes, void (*zerof)(void *d, size_t bytes)) in test_using() argument
86 zerof(buf, bytes); in test_using()
92 zerof(buf, bytes); in test_using()
99 printf("%s %d %5.2f MBytes/sec\n", ctl, bytes, in test_using()
100 (double)loops * (double)bytes / (double)us); in test_using()