part2 ver 0.2
This commit is contained in:
parent
b2ad429c8c
commit
84ea3267db
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue