D | sha2speed.c | 49 void printspeed(char *caption, unsigned long bytes, double time) { in printspeed() argument 50 if (bytes / 1073741824UL > 0) { in printspeed() 51 printf("%s %.4f sec (%.3f GBps)\n", caption, time, (double)bytes/1073741824UL/time); in printspeed() 52 } else if (bytes / 1048576 > 0) { in printspeed() 53 printf("%s %.4f (%.3f MBps)\n", caption, time, (double)bytes/1048576/time); in printspeed() 54 } else if (bytes / 1024 > 0) { in printspeed() 55 printf("%s %.4f (%.3f KBps)\n", caption, time, (double)bytes/1024/time); in printspeed() 57 printf("%s %.4f (%f Bps)\n", caption, time, (double)bytes/time); in printspeed() 68 int bytes, blocks, rep, i, j; in main() local 78 bytes = 1024 * 1024 * 16; in main() [all …]
|