b69591add3
Add support for detecting Intel CascadeLake CPUs ( #271 )
...
Should close
https://github.com/google/cpu_features/issues/260
2022-09-19 10:00:01 +02:00
4e8d2e3a22
add intel goldmont plus ( #256 )
...
* add intel goldmont plus (INTEL_ATOM_GMT_PLUS)
2022-08-08 09:27:18 +02:00
426b036e8d
Added some missing amd k12 uarch ( #259 )
...
* Add comment about AMD_K12 LLANO.
* Add family 0x12 model 0x00 to it.
2022-08-04 22:30:46 +02:00
c6b0a803a8
Add AVX_VNNI
2022-08-04 21:56:32 +02:00
6d62f2fa64
add intel Tremont microarch
2022-08-04 21:54:23 +02:00
601471d527
Add detection LZCNT ( #254 )
...
Fixes #253
2022-07-28 12:22:16 +02:00
8eb944f55d
add comet lake support #248 ( #249 )
2022-07-13 10:28:34 +02:00
db9ad9fc2c
Add not about avx512_4vbmi2 being an alias of avx512_4fmaps
2022-07-12 15:45:51 +00:00
3c4801d12d
Add AMD ZEN 4 uarch and update detection ( #243 )
...
* Add AMD ZEN 4 uarch and update detection
* Add tests via cpuid dump
2022-06-17 11:18:05 +02:00
1d02169588
Add support for ZHAOXIN CPU ( #218 )
2022-02-18 16:32:06 +01:00
149916384b
[x86] Embed brand_string and mark FillX86BrandString as deprecated ( #214 )
2022-01-14 17:20:31 +01:00
5695cc4817
Update uarch detection for Intel processors ( #184 )
2021-10-29 10:41:50 +02:00
f96d5f74d4
NFC remove reference to libc memory functions
2021-10-28 11:56:57 +00:00
deb2a61b80
New code layout - breaking change in cpu_features_macros.h ( #194 )
...
This commit helps with platform code separation (fixes #3 ). It should also help with the build as we can simply include all `impl_*.c` files regardless of OS / arch.
Note: this patch contains breaking changes in `include/cpu_features_macros.h`
- `CPU_FEATURES_OS_LINUX_OR_ANDROID` does not exist anymore
- `CPU_FEATURES_OS_FREEBSD`, `CPU_FEATURES_OS_ANDROID` and `CPU_FEATURES_OS_LINUX` are now mutually exclusive (i.e. `CPU_FEATURES_OS_ANDROID` does not imply `CPU_FEATURES_OS_LINUX`)
- `CPU_FEATURES_OS_DARWIN` has been renamed into `CPU_FEATURES_OS_MACOS` to be able to target non-Mac Apple products (IOS, TV, WATCH). They are now targetable with `CPU_FEATURES_OS_IPHONE`. This matches Apple naming convention described in [this stackoverflow](https://stackoverflow.com/a/49560690 ).
2021-10-28 13:52:46 +02:00
0925f6953c
Add cache info for new AMD CPUs (0x8000001D) ( #171 )
2021-10-18 14:14:29 +02:00
5492c4c561
CPU features for AMD ( #165 )
2021-06-30 12:38:56 +02:00
d35e2f38eb
Detect Intel's Multi-Precision Add-Carry Instruction Extensions ( #157 )
2021-05-21 10:47:32 +02:00
7ed0b0e50e
Detect Zen 3 (K19) cpus ( #152 )
...
Co-authored-by: natanbc <natanbc@users.noreply.github.com >
2021-02-25 21:47:39 +01:00
3cc8f310d9
[NFC] Update copyright from Google Inc. to Google LLC
2020-10-12 08:55:20 +00:00
17ffb65117
detect AVX-512 FMA count ( #125 )
...
* add Ice Lake Server and Sapphire Rapids models
The information contained in this commit was obtained from
"Intel® Architecture Instruction Set Extensions and Future Features Programming Reference" document 319433-040 from
https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html
Signed-off-by: Jeff Hammond <jeff.r.hammond@intel.com >
* Tiger Lake; Ice Lake NNP-I; SPR string
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* second FMA features - incomplete and wrong
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* oops: use T/F not 2/1
Signed-off-by: Jeff Hammond <jeff.r.hammond@intel.com >
* implement SKX lookup
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* add Intel copyright
* cleanup AVX512 second FMA code
1) remove debug stuff
2) remove ICX - will add details when available
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* fix CPX detection
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* remove elses
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* remove curly braces from single-line conditional bodies
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* apply clang-format
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
Fixes #120
2020-09-22 07:29:46 +00:00
33bd72c1bc
detect future Intel AVX/AMX features ( #124 )
...
* add Ice Lake Server and Sapphire Rapids models
The information contained in this commit was obtained from
"Intel® Architecture Instruction Set Extensions and Future Features Programming Reference" document 319433-040 from
https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html
Signed-off-by: Jeff Hammond <jeff.r.hammond@intel.com >
* Tiger Lake; Ice Lake NNP-I; SPR string
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* add AVX512_BF16 and AVX512_VP2INTERSECT detection
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* correction for KNM features: s/4VBMI2/4FMAPS/g
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* add AMX/TMUL bits from 319433-040
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* add Intel copyright
Fixes #128
2020-09-21 07:56:26 +00:00
e698327713
add future Intel microarchitectures ( #123 )
...
* add Ice Lake Server and Sapphire Rapids models
The information contained in this commit was obtained from
"Intel® Architecture Instruction Set Extensions and Future Features Programming Reference" document 319433-040 from
https://software.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html
Signed-off-by: Jeff Hammond <jeff.r.hammond@intel.com >
* Tiger Lake; Ice Lake NNP-I; SPR string
Signed-off-by: Hammond, Jeff R <jeff.r.hammond@intel.com >
* add Intel copyright
Fix #127
2020-09-21 07:54:58 +00:00
3262a55118
Support x86 FMA4 and SSE4A features
2020-03-12 10:58:41 +00:00
73a121b1ae
Differentiate between different Lake uarch
2020-01-06 16:23:29 +01:00
653d581e03
Add support for leaf2 and leaf4 on Intel's x86 arch ( #80 )
...
* Add support for leaf4 on Intel's x86 arch
* Update cpuinfo_x86.h
* Fix typo
* Force compiler to use C99
* Add Intel x86 leaf2 support
* Fixes after review
* Fix review comments
2019-07-02 16:52:25 +02:00
3ee4a9e801
Support x86 DCA and SS features ( #76 )
...
* Add dca and ss features
* Remove trailing white spaces
2019-06-19 15:06:05 +02:00
367bc42116
Support x86 features: FPU, TSC, CX8, CLFSH, MMX, VAES, HLE, RTM, RDSEED, CLFLUSHOPT, CLWB, SSE, SSE2, SSE3, PCLMULQDQ ( #73 )
2019-06-13 11:53:39 +02:00
d395dfa026
Add x86 missing feature detections for ndk_compat ( #58 )
...
One more step towards #47 .
2019-01-22 13:19:42 +01:00
4155ee7e36
Guarding header use with architecture ( #56 )
2019-01-18 13:38:22 +01:00
9b872ce0b2
Add cx16 (cmpxchg16b) cpuid flag. Fixes #30
2018-03-13 10:58:42 +01:00
3ee0d62e87
detect intel sgx and smx cpu features for the x86 arch
2018-02-13 11:16:48 +01:00
e419573d10
Use CPU_FEATURES_ prefix for namespace macros.
2018-02-12 16:15:15 +01:00
11e3e20496
Reverting 338484f6f2
. Fixes #2
2018-02-09 08:55:11 +01:00
1d6ba6139c
Merge pull request #5 from bsurmanski/patch-1
...
Fix spelling mistake for 'Cannon Lake'
2018-02-08 16:34:15 +01:00
338484f6f2
Fixes #2 - vpclmulqdq should be pclmulqdq.
2018-02-08 11:35:31 +01:00
efcc49a493
Fix spelling mistake for 'Cannon Lake'
...
See:
https://www.intel.com/content/www/us/en/design/products-and-solutions/processors-and-chipsets/platform-codenames.html
https://en.wikipedia.org/wiki/Cannon_Lake_(microarchitecture)
2018-02-07 11:07:00 -08:00
8e58ef0d2b
Removing THIRD_PARTY_ from C headers.
2018-02-01 10:38:48 +01:00
439d371594
Adding code. Closes #0 .
2018-02-01 10:03:09 +01:00