Skip to content
Snippets Groups Projects
Unverified Commit 03889ae7 authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Check the return value of __get_cpuid().

This function can fail if CPUID is not supported or the maximum
 supported value of EAX is less than the requested one.
Check the return value and explicitly disable all SIMD if it does
 fail.
This was happening before implicitly because of the initialization
 of info[] to zero, but being explicit about it makes it less likely
 someone will break this behavior because they did not realize what
 was going on.
parent ccb42e05
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment