MicrobenchmarksGui
MicrobenchmarksGui copied to clipboard
int 31-bit overflow
MemoryLatency.c
float RunLatencyTest(uint32_t size_kb, uint64_t iterations) {
for (int i = 0; i < iterations; i++) {
current = A[current];
here we have int 31-bit overflow for big iterations value.
Also the code is not optimal, when we compare int with uint64_t in loop.