sglang_v0.5.2/pytorch_2.8.0/third_party/NNPACK/bench/memread.c

12 lines
200 B
C

#include <stddef.h>
int read_memory(const void* pointer, size_t bytes) {
int hash = 0;
while (bytes >= 64) {
hash ^= *((const int*) pointer);
pointer += 64;
bytes -= 64;
}
return hash;
}