librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

fix for cpuid has_avx feature

Open cabirdme opened this issue 5 years ago • 2 comments

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.

cabirdme avatar Jul 02 '20 23:07 cabirdme

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?

cabirdme avatar Aug 04 '21 17:08 cabirdme

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

dmipx avatar Aug 29 '23 12:08 dmipx