mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Rollup merge of #90084 - noncombatant:patch-2, r=steveklabnik
Make printed message match the code comment I think this code is getting L0, not L1 cache size, if I'm reading the Intel manual right. (I might not be.) Either way, the code comment and the printed message should match, whichever way is right. :)
This commit is contained in:
commit
21d2f29533
@ -257,7 +257,7 @@ unsafe {
|
||||
}
|
||||
|
||||
println!(
|
||||
"L1 Cache: {}",
|
||||
"L0 Cache: {}",
|
||||
((ebx >> 22) + 1) * (((ebx >> 12) & 0x3ff) + 1) * ((ebx & 0xfff) + 1) * (ecx + 1)
|
||||
);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user