cpu_features
cpu_features copied to clipboard
A cross platform C99 library to get cpu features at runtime.
It seems to me for the usual user, it will be unclear what CPU features have(excluding what was described in README samples). I would like to propose to introduce documentation...
This may also help with iOS? Here is part of the `sysctl -a` from an Apple DTK. These can be queried with `sysctlbyname`. ``` hw.optional.floatingpoint: 1 hw.optional.watchpoint: 4 hw.optional.breakpoint: 6...
i.e. https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/PowerPC-Built-in-Functions.html#PowerPC-Built-in-Functions this should be a tiny bit faster than getauxval() when it is supported.
ART on Android works around quirks/bugs in /proc/cpuinfo and aux vector, has support for cross compilation, detection of features via C preprocessor, CPUID instructions, undefined instruction exceptions, supports MIPS, ARM,...
Following the work that `lscpu` has done, report more details of Arm CPUs. http://suihkulokki.blogspot.fi/2018/02/making-sense-of-proccpuinfo-on-arm.html has background, and Jon Masters has RHEL info at https://twitter.com/jonmasters/status/963423759955910656 .
This looks like a fantastically useful library. Just a point for consideration, given that one of the targets is to make it easier to write fast code: https://blog.cloudflare.com/on-the-dangers-of-intels-frequency-scaling/ Note that...
There are demo snippets in the README showing how to use the library at the source level, and there is a building with cmake part about building it, but it...
To test all code paths of apps that use cpu_features to select between different implementations of an algorithm, it would be useful to be able to mock having a CPU...
I added RISC-V architecture support on linux by parsing `/proc/cpuinfo`. It has been tested using QEMU emulator. I have done the following points: - features detection (i kept it as...