part2 ver 0.2

This commit is contained in:
ClF3 2024-11-04 19:34:03 +08:00
parent b2ad429c8c
commit 84ea3267db
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ int main() {
for(int i = 0; i < 1024; i++) { for(int i = 0; i < 1024; i++) {
CYCLES time = measure_one_block_access_time((ADDR_PTR)buf + (i * 10020107) % 1024 * 128); CYCLES time = measure_one_block_access_time((ADDR_PTR)buf + (i * 10020107) % 1024 * 128);
if(time < CACHE_HIT_THRESHOLD) { if(time < CACHE_HIT_THRESHOLD) {
flag = i; flag = (i * 10020107) % 1024;
break; break;
} }
} }