cpu: add CPU info with model name, core/thread counts, and P/E detection

This commit is contained in:
Amaan Qureshi 2026-04-11 03:57:40 -04:00
commit e434985d00
No known key found for this signature in database
3 changed files with 361 additions and 1 deletions

View file

@ -149,7 +149,7 @@ fn round_f64(x: f64) -> f64 {
}
/// Write a u64 to string
fn write_u64(s: &mut String, mut n: u64) {
pub fn write_u64(s: &mut String, mut n: u64) {
if n == 0 {
s.push('0');
return;