cpuid/x86: print the AVX feature
This commit is contained in:
parent
607031a041
commit
5c3df6cd4c
@ -161,7 +161,7 @@ cruft::cpu::operator<< (std::ostream &os, const x86 &val)
|
|||||||
return os << cruft::format::printf (
|
return os << cruft::format::printf (
|
||||||
"{ name: { vendor: '%!', product: '%!' }"
|
"{ name: { vendor: '%!', product: '%!' }"
|
||||||
", cores: { logical: %!, physical: %!, hyper_threading: %! }"
|
", 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.vendor_name),
|
||||||
to_string (val.product_name),
|
to_string (val.product_name),
|
||||||
@ -173,6 +173,7 @@ cruft::cpu::operator<< (std::ostream &os, const x86 &val)
|
|||||||
(val.simd.sse3 ? "true" : "false"),
|
(val.simd.sse3 ? "true" : "false"),
|
||||||
(val.simd.ssse3 ? "true" : "false"),
|
(val.simd.ssse3 ? "true" : "false"),
|
||||||
(val.simd.sse41 ? "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