cpuid/x86: print the AVX feature
This commit is contained in:
parent
607031a041
commit
5c3df6cd4c
@ -161,18 +161,19 @@ cruft::cpu::operator<< (std::ostream &os, const x86 &val)
|
||||
return os << cruft::format::printf (
|
||||
"{ name: { vendor: '%!', product: '%!' }"
|
||||
", cores: { logical: %!, physical: %!, hyper_threading: %! }"
|
||||
", simd: { sse: %!, sse2: %!, sse3: %!, ssse3: %!, sse41: %!, sse42: %! }"
|
||||
", simd: { sse: %!, sse2: %!, sse3: %!, ssse3: %!, sse41: %!, sse42: %!, avx: %! }"
|
||||
" }",
|
||||
to_string (val.vendor_name),
|
||||
to_string (val.product_name),
|
||||
val.cores.logical,
|
||||
val.cores.physical,
|
||||
(val.cores.hyper_threading ? "true" : "false"),
|
||||
(val.simd.sse ? "true" : "false"),
|
||||
(val.simd.sse2 ? "true" : "false"),
|
||||
(val.simd.sse3 ? "true" : "false"),
|
||||
(val.simd.sse ? "true" : "false"),
|
||||
(val.simd.sse2 ? "true" : "false"),
|
||||
(val.simd.sse3 ? "true" : "false"),
|
||||
(val.simd.ssse3 ? "true" : "false"),
|
||||
(val.simd.sse41 ? "true" : "false"),
|
||||
(val.simd.sse42 ? "true" : "false")
|
||||
(val.simd.sse42 ? "true" : "false"),
|
||||
(val.simd.avx ? "true" : "false")
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user