Guillaume Chatelet
63cc2980df
Update badges
2023-08-30 13:29:50 +00:00
Corentin Le Molgat
60aa4e343a
Update badges generator.
2023-08-30 13:19:47 +02:00
Corentin Le Molgat
c57960579b
ci: rework bazel workflows to use a docker container
2023-08-30 13:19:47 +02:00
Mizux Seiha
468426e7c7
ci: add bazel docker for amd64 and arm64
2023-08-30 13:19:47 +02:00
Mizux Seiha
5e105a29f5
update .dockerignore
2023-08-30 13:19:47 +02:00
Guillaume Chatelet
810eb5b10e
Use bazelisk instead on bazel
2023-08-30 13:19:47 +02:00
Guillaume Chatelet
5d97a14add
Add aarch64 ubuntu bot
2023-08-30 13:19:47 +02:00
Guillaume Chatelet
be65a3d148
Fix bazel - use textual_hdrs for inl files ( #322 )
2023-08-29 10:44:07 +02:00
Weihang Ding
bd580370ee
Fix windows x86 and arm64 build and add an option to enable/disable target list_cpu_features ( #317 )
...
* Add an option to enable/disable target list_cpu_features
* Fix windows x86 and arm64
2023-08-28 16:29:00 +02:00
Tomahawkd
b5cb91b35c
Add Intel LAM/AMD UAI feature detection in X86_64 ( #315 )
...
* Add Intel LAM/AMD UAI features in X86
* Add AMD UAI test for AMD_K19_ZEN4_RAPHAEL
* Add separate UAI for AMD
2023-08-28 16:25:24 +02:00
Wang Xiang
a89e3b5569
Add LoongArch to supported list ( #316 )
...
* Add LoongArch to supported list
* Add badges and use same column order for supported archs
---------
Co-authored-by: Guillaume Chatelet <gchatelet@google.com>
2023-08-28 15:25:43 +02:00
Guillaume Chatelet
f8e3af9843
Fix bazel for aarch64 ( #320 )
...
* Remove unused function
* Fix bazel build for aarch64
2023-08-28 15:14:27 +02:00
arkivm
c5ece5e8cc
Add support for Apple M1 AArch64 SoCs ( #204 )
...
* Add support for Apple M1 AArch64 SoCs
Completely based on #150 . Thanks to @sbehnke!
+ Refactoring to accomodate the new source tree
+ Adding more feature flags
* revert minimum version to 3.0
* Update introspection table
* Simplify logic for Apple HAVE_SYSCTLBYNAME
---------
Co-authored-by: Guillaume Chatelet <gchatelet@google.com>
2023-08-28 11:16:41 +02:00
Wang Xiang
0d5f398c58
Add loongarch64 Support ( #314 )
...
* Add macros for LOONGARCH hwcaps
* Update hwcaps.h
* LoongArch Support
* Remove unused definitions.
* Add ignored feature in test.
2023-08-23 20:35:29 +02:00
Guillaume Chatelet
804eaa075a
Use macos-latest for Freebsd
...
macos-10.15 does not exist anymore
2023-08-23 20:24:07 +02:00
Prashanth Swaminathan
de1b9e6fe7
Add Riscv32 and Riscv64 Bazel build rules. ( #312 )
...
* Add Riscv64 Bazel build rules.
* Add Riscv32 Bazel build rules.
2023-06-15 09:03:16 +02:00
Tamas Zsoldos
b0913b4197
Update AArch64 features to Linux 6.4. ( #310 )
2023-06-09 16:47:44 +02:00
Prashanth Swaminathan
6fe75d22ab
Add 'ndk_compat' include directory to 'ndk_compat' target ( #309 )
...
Add 'ndk_compat' to the 'includes' directive of the 'ndk_compat' target, so that targets that include this library can directly reference 'cpu-features.h' like they did with the legacy Android NDK library.
2023-06-02 23:41:23 +02:00
Guillaume Chatelet
c672eb403c
Add ndk_compat target to BUILD.bazel
2023-06-02 06:16:15 +00:00
damageboy
41e206e435
cmake: make default test building dependent on being a main project build vs. being included into other projects ( #290 )
2023-05-04 08:54:03 +02:00
Guillaume Chatelet
936b9ab551
Release v0.8.0
v0.8.0
2023-04-27 07:44:32 +00:00
Mykola Hohsadze
0e9da93fac
Add Mendocino ZEN2 detection ( #305 )
2023-04-25 10:11:23 +02:00
michael-roe
75ec988188
Add RISCV vector extension ( #289 )
...
Co-authored-by: Michael Roe <michael-roe@users.noreply.github.com>
2023-04-24 15:36:22 +02:00
Mykola Hohsadze
5607a689e0
Add Raptor Lake-P and Raptor Lake-HX/S detection ( #300 )
2023-03-06 15:04:00 +01:00
aecsocket
79c0d7d24e
Add cpu-features-jni Java bindings to README ( #297 )
...
* Add cpu-features-jni Java bindings
* Update Java bindings URL
2023-03-06 15:03:12 +01:00
Mykola Hohsadze
a6bf4f9031
Add Windows Arm64 support ( #291 )
...
* Add Windows Arm64 support
To add Windows Arm64 support was added detection of features via Windows API function IsProcessorFeaturePresent. Added _M_ARM64 to detect CPU_FEATURES_AARCH64 macro on Windows. Added initial code for Windows Arm64 testing and provided test for Raspberry PI 4. We can't use "define_introspection_and_hwcaps.inl" as a common file for all operating systems due to msvc compiler error C2099: initializer is not a constant, so as a workaround for Windows I used separate "define_introspection.inl"
See also: #268 , #284 , #186
* [CMake] Add windows_utils.h to PROCESSOR_IS_AARCH64
* Add detection of armv8.1 atomic instructions
* Update note on win-arm64 implementation and move to cpuinfo_aarch64.h
* Remove redundant #ifdef CPU_FEATURES_OS_WINDOWS
* Add note on FP/SIMD and Cryptographic Extension for win-arm64
* Add comments to Aarch64Info fields
Added comments to specify that implementer, part and variant we set 0 for Windows, since Win API does not provide a way to get information. For revision added comment that we use GetNativeSystemInfo
2023-02-23 11:41:33 +01:00
Ben Beasley
273af56a15
Update C++ standard for tests from C++11 to C++14 ( #293 )
...
Since 1.13.0, gtest requires at least C++14. When it is automatically
downloaded and compiled, gtest’s CMake scripts override the C++
standard, so the tests are compiled in C++14 mode already. Changing the
C++ standard in cpu_features will make it easier for users such as Linux
distribution packagers who are linking against an external or
system-wide copy of gtest 1.13.0 or later.
2023-02-22 15:13:23 +01:00
Mykola Hohsadze
c74a85d64a
Add documentation on current behavior for X86 ( #212 )
...
* Add documentation for X86 OS support
* Update X86 documentation
* Remove outdated cache info comment
* Update x86 documentation according to comments
* Update Internal structures documentation
2023-01-24 20:27:10 +01:00
Guillaume Chatelet
4590768e53
Fix badges in README.md
2023-01-13 09:57:59 +00:00
Guillaume Chatelet
c919e9aa77
Support risc-v ( #287 )
...
Co-authored-by: DaniAffCH <danieleaffinita2000@gmail.com>
Co-authored-by: Corentin Le Molgat <corentinl@google.com>
2023-01-12 17:19:05 +01:00
Guillaume Chatelet
a7ea4a7783
Include tests when using QEMU ( #288 )
...
* Include tests when using QEMU
* Also add `set -e` so we fail when tests fail
2023-01-12 16:54:02 +01:00
Corentin Le Molgat
4e191a4cc8
script: rename few variables in expand_bootlin
2022-11-09 15:37:43 +00:00
Mykola Hohsadze
19799486d2
Add Intel Raptor Lake uarch detection ( #283 )
2022-11-08 15:35:50 +01:00
Guillaume Chatelet
b7bc447203
Update README.md to report support of POWER and s390x ( #284 )
2022-11-03 10:39:28 +01:00
Mizux
16ca56fcb2
Improve CI (Aarch64, Power) ( #285 )
...
* scripts: Fix shellcheck
* script: Bump qemu 5.2.0 -> 7.1.0
* scripts: add bootlin aarch64 toolchains
* scripts: Add PowerPC bootlin toolchain
* scripts: cleanup linaro toolchains
* scripts: cleanup codespace
* cmake(ci): Add aarch64 bootlin support
* cmake(ci): Add PowerPC bootlin support
* ci: Add aarch64 bootlin jobs
* ci: Add PowerPC bootlin jobs
* Remove conflict with compiler generated preprocessor
Co-authored-by: Guillaume Chatelet <gchatelet@google.com>
2022-11-03 10:06:38 +01:00
marquitos0119
981fbe3914
S390X Support ( #274 )
...
* support for s390x
* added z15 T01, T02 model checking
* removed z15 checking
* removed empty strings
* added s390x unit tests
* added reference url for hwcaps
* moved documentation to S390XFeatures struct, updated copyright date, removed unused include statement
* changed num_processors to int
* removed newlines from test inputs
* scripts: Add bootlin s390x support
* cmake(ci): Add s390x support
* ci: Add s390x workflow
Co-authored-by: Marcos <marcos.araque.fiallos@ibm.com>
Co-authored-by: Corentin Le Molgat <corentinl@google.com>
2022-11-02 09:38:13 +01:00
Mykola Hohsadze
bddcc3721c
Add REP instructions detection ( #282 )
2022-10-26 16:13:15 +02:00
Mykola Hohsadze
26852665b4
Add X86 movdir detection ( #281 )
2022-10-25 09:33:13 +02:00
Mykola Hohsdze
3485a46a6d
Add X86 GFNI detection
2022-10-24 08:29:55 +02:00
damageboy
8ca7c65f65
add x86/avx512_fp16 detection ( #279 )
...
fixes #278
2022-10-20 11:26:13 +02:00
Mykola Hohsadze
627959faee
Add AMD ZEN4 Raphael detection ( #277 )
2022-10-19 11:36:27 +02:00
Andrei Kurushin
4760834428
add mobile core flavor ( #266 )
2022-10-19 11:35:19 +02:00
Guillaume Chatelet
438a66e418
Use textual_hdrs for bazel instead of hdrs ( #276 )
2022-09-29 11:10:07 +02:00
Mykola Hohsadze
302566b160
Replace hardcoded cache type value to enum type for X86 tests ( #270 )
...
Replaced hardcoded integer values of cache type to `CacheType` values for X86 tests and added declaration `CacheType` for `P4_CacheInfo` test
2022-09-19 12:56:09 +02:00
William Tambellini
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
Mykola Hohsadze
cee2648cf0
Add cache detection for old AMD processors ( #199 )
...
* Add cache detection for of old AMD processors
update links
* Add documentation link for cache_size * 512
* Update legacy amd cache detection
2022-08-18 13:55:21 +02:00
Andrei Kurushin
1e253a7728
add amd cato ( #267 )
...
* add AMD RX-8125, RX-8120, and A9-9820 detection
2022-08-18 10:40:24 +02:00
Mykola Hohsadze
cd97c7cee7
Get rid repeated branch ( #269 )
...
* Get rid repeated branch
* Update cache type field comment
2022-08-18 10:39:00 +02:00
Andrei Kurushin
4e8d2e3a22
add intel goldmont plus ( #256 )
...
* add intel goldmont plus (INTEL_ATOM_GMT_PLUS)
2022-08-08 09:27:18 +02:00
Andrei Kurushin
876b9e6a73
add amd piledriver 0x10 model ( #255 )
...
* add amd piledriver 0x10 model
2022-08-05 15:56:53 +02:00