-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels