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.
MemoryLatency.chere we have
int31-bit overflow for bigiterationsvalue.Also the code is not optimal, when we compare
intwithuint64_tin loop.