Vector Class Discussion

 
single message Issue with __cpuidex in instrset_detect.cpp - Omar Awile - 2017-01-05
 
Issue with __cpuidex in instrset_detect.cpp
Author:  Date: 2017-01-05 07:41
Hello and Happy New Year!

The instrset_detect.cpp module in Vector Class implements a cpuid function (line 22), which assumes that the Intel C++ compiler provides a __cpuidex intrinsic function. This is, however, not true on Linux platforms where the Intel compiler uses gcc intrinsics. Alternatively __cpuidex could be replaced in this case by __cpuid since the third parameter is hardcoded to 0.

Would it be possible to fix this issue for the next vector class release?

Thank you!

Omar Awile