Branch Coverage

_rhash_timing.c
Criterion Covered Total %
branch 0 32 0.0


line true false branch
106 0 0 timer->tv_usec = end.tv_usec + (end.tv_usec >= timer->tv_usec ? 0 : 1000000 ) - timer->tv_usec;
151 0 0 if (!context) return 0;
154 0 0 for (i = 0; i < count; i++) rhash_update(context, message, msg_size);
190 0 0 if (hash_id & (RHASH_WHIRLPOOL | RHASH_SNEFRU128 | RHASH_SNEFRU256 | RHASH_SHA3_224 | RHASH_SHA3_256 | RHASH_SHA3_384 | RHASH_SHA3_512)) {
192 0 0 } else if (hash_id & (RHASH_GOST | RHASH_GOST_CRYPTOPRO | RHASH_SHA384 | RHASH_SHA512)) {
197 0 0 if (!hash_name) hash_name = ""; /* benchmarking several hashes*/
199 0 0 for (i = 0; i < (int)sizeof(message); i++) message[i] = i & 0xff;
201 0 0 for (j = 0; j < rounds; j++) {
208 0 0 if ((flags & (RHASH_BENCHMARK_QUIET | RHASH_BENCHMARK_RAW)) == 0) {
216 0 0 if (flags & RHASH_BENCHMARK_CPB) {
222 0 0 for (i = 0; i < 200; i++) {
232 0 0 c1 = (unsigned int)(c1 > cy1 ? cy1 : c1);
233 0 0 c2 = (unsigned int)(c2 > cy2 ? cy2 : c2);
239 0 0 if (flags & RHASH_BENCHMARK_RAW) {
243 0 0 if (flags & RHASH_BENCHMARK_CPB) fprintf(output, "\t%.2f", cpb);
249 0 0 if (flags & RHASH_BENCHMARK_CPB) fprintf(output, ", CPB=%.2f", cpb);