Skip to content
Snippets Groups Projects
Forked from Xiph.Org / Opus
Source project has a limited visibility.
  • Timothy B. Terriberry's avatar
    03889ae7
    Check the return value of __get_cpuid(). · 03889ae7
    Timothy B. Terriberry authored
    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.
    03889ae7
    History
    Check the return value of __get_cpuid().
    Timothy B. Terriberry authored
    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.