bind9/tests/bench
Tony Finch cf715d488b Suppress division by zero warning
Coverity is optimistic that we might do thousands of hashes in less
than a microsecond.

    /tests/bench/siphash.c: 54 in main()
    48     			count++;
    49     		}
    50
    51     		isc_time_now_hires(&finish);
    52
    53     		us = isc_time_microdiff(&finish, &start);
    >>>     CID 358309:  Integer handling issues  (DIVIDE_BY_ZERO)
    >>>     In expression "count * 1000UL / us", division by expression "us" which may be zero has undefined behavior.
    54     		printf("%f us wide-lower len %3zu, %7llu kh/s (%llx)\n",
    55     		       (double)us / 1000000.0, len,
    56     		       (unsigned long long)(count * 1000 / us),
    57     		       (unsigned long long)sum);
    58     	}
    59
2022-10-05 12:31:42 +01:00
..
.gitignore A simple siphash benchmark 2022-10-04 10:32:40 +02:00
ascii.c Use the semantic patch to do the unsigned -> unsigned int change 2022-09-19 15:56:02 +02:00
Makefile.am A simple siphash benchmark 2022-10-04 10:32:40 +02:00
siphash.c Suppress division by zero warning 2022-10-05 12:31:42 +01:00