Guillaume Chatelet
122b067087
Use Cmake macros to detect getauxval and dlopen
2019-01-15 15:18:08 +01:00
Guillaume Chatelet
e8e5610fc4
Per arch build and inlining of cpuid_x86.
2019-01-15 10:52:56 +01:00
fuzun
f6c8a5d92d
Revert "Different approach for -1 & true compliance"
...
This reverts commit 58a232c560cbd5d341aeb67b890cbe263528a755.
2018-09-11 17:24:35 +03:00
fuzun
a23004e154
Merge branch 'master' of https://github.com/fuzun/cpu_features
2018-09-08 06:01:08 +03:00
fuzun
58a232c560
Different approach for -1 & true compliance
2018-09-08 05:56:35 +03:00
fuzun
7c1c91f9ea
Merge pull request #1 from google/master
...
Sync with head
2018-09-08 05:16:44 +03:00
Guillaume Chatelet
dab7cea707
Fix -Wunused-function warning.
2018-09-07 15:17:44 +02:00
fuzun
9d9134cf0b
Parantheses added to CPUID macro
2018-08-30 06:13:02 +03:00
Rashmica Gupta
c45e32f812
powerpc: Add AT_PLATFORM and AT_BASE_PLATFORM
...
Some PowerPC machines can operate in a mode that appears different
to a process than the actual hardware. AT_PLATFORM indicates the
supported instruction set and AT_BASE_PLATFORM indicates the
actual microarchitecture of the hardware.
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:58 +10:00
Rashmica Gupta
1c8bf0ecd8
hwcaps: Change uint32_t to unsigned long
...
getauxval() returns an unsigned long which can be defined to be
more than 32 bits so don't force the result into a uint32_t.
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:53 +10:00
Rashmica Gupta
3adafbfe66
powerpc: Added PowerPC implementation
...
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:24:45 +10:00
Arvid Gerstmann
d968991caa
Reformat files
2018-05-04 09:32:17 +02:00
Arvid Gerstmann
235d57c591
Fix failing tests on Linux & Android
2018-05-04 09:30:32 +02:00
Arvid Gerstmann
fd4839032c
Fix tests & fix missing GetHardwareCapabilities() change
2018-05-03 17:07:07 +02:00
Arvid Gerstmann
a1ffdcbe70
Explicitly namespace every extern identifier
2018-04-26 10:31:03 +02:00
Guillaume Chatelet
07fd90d4f5
Add JSON output. Fixes #24
2018-03-27 15:28:40 +02:00
Guillaume Chatelet
9b872ce0b2
Add cx16 (cmpxchg16b) cpuid flag. Fixes #30
2018-03-13 10:58:42 +01:00
Patrik Fiedler
0f1f3ac262
sort the detection by leaf and bit
2018-02-13 11:44:40 +01:00
Patrik Fiedler
3ee0d62e87
detect intel sgx and smx cpu features for the x86 arch
2018-02-13 11:16:48 +01:00
Guillaume Chatelet
7634420f31
GCC does not discover all cpu features. Fixes #22
2018-02-13 10:12:21 +01:00
Guillaume Chatelet
6395af0fc6
Fixing MSVC build.
2018-02-09 14:50:12 +01:00
Guillaume Chatelet
4189efff92
Converts list_cpu_features to C
2018-02-09 10:08:23 +01:00
Guillaume Chatelet
11e3e20496
Reverting 338484f6f2176c3d8ede0ed2f3fbd6cf1eb0274c. Fixes #2
2018-02-09 08:55:11 +01:00
Guillaume Chatelet
338484f6f2
Fixes #2 - vpclmulqdq should be pclmulqdq.
2018-02-08 11:35:31 +01:00
Guillaume Chatelet
439d371594
Adding code. Closes #0 .
2018-02-01 10:03:09 +01:00