Browse Source

Added somme comments

nfactor-troky
Znort 987 13 years ago
parent
commit
593022dfd7
  1. 3
      main.c

3
main.c

@ -361,10 +361,12 @@ static struct pool *current_pool(void)
return pool; return pool;
} }
// Algo benchmark, crash-prone, system independent stage
static double bench_algo_stage3( static double bench_algo_stage3(
enum sha256_algos algo enum sha256_algos algo
) )
{ {
// Random work pulled from a pool
static uint8_t some_block[] = { static uint8_t some_block[] = {
0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0xD8, 0x07, 0x17, 0xC9, 0x13, 0x6F, 0xDC, 0xBE, 0xDE, 0xB7, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0xD8, 0x07, 0x17, 0xC9, 0x13, 0x6F, 0xDC, 0xBE, 0xDE, 0xB7,
0xB2, 0x14, 0xEF, 0xD1, 0x72, 0x7F, 0xA3, 0x72, 0xB2, 0x5D, 0x88, 0xF0, 0x00, 0x00, 0x05, 0xAA, 0xB2, 0x14, 0xEF, 0xD1, 0x72, 0x7F, 0xA3, 0x72, 0xB2, 0x5D, 0x88, 0xF0, 0x00, 0x00, 0x05, 0xAA,
@ -781,6 +783,7 @@ static void bench_algo(
} }
} }
// Figure out the longest algorithm name
static void init_max_name_len() static void init_max_name_len()
{ {
size_t i; size_t i;

Loading…
Cancel
Save