fix for cpuid has_avx feature
has_avx function seems to have incorrect usage of cpuid instruction for checking the AVX feature bit on Intel processors. Proposed fix by changing eax input to 01H (from 0x80000000 ). Code correctly seeks the 28th bit from ECX to check AVX feature bit.
my apologies for losing my attention here. anything i should do to help with this old request? can CI be re-run? should i close & re-submit?
From here: Some processors support Extended Function CPUID information. When it's supported, function_id values from 0x80000000 might be used to return information. To determine the maximum meaningful value allowed, set function_id to 0x80000000. The maximum value of function_id supported for extended functions will be written to cpuInfo[0].
EAX=80000000h: Get Highest Extended Function Implemented