Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/cpu_features.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-02S390X Support (#274)marquitos0119
* 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-07-21add windows ssse3,sse4_1,sse4_2 detection for non avx path (#251)Andrei Kurushin
* add windows ssse3,sse4_1,sse4_2 detection for non avx path * remove special WESTMERE case * move windows conditional redefinition to separate header * fix minor issues
2022-03-08Release v0.7.0v0.7.0Guillaume Chatelet
2021-11-30Fix arm64 detection precedence in CMakeLists.txt (#209)Guillaume Chatelet
Fixes #179
2021-10-28New code layout - breaking change in cpu_features_macros.h (#194)Guillaume Chatelet
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-25cmake: Use of CMAKE_POSITION_INDEPENDENT_CODE instead of BUILD_PIC (Fix #143)Corentin Le Molgat
2021-10-18add BUNDLE DESTINATION (#177)SpaceIm
required for installation of executable target if cross-build to iOS/tvOS/watchOS see https://cmake.org/cmake/help/latest/policy/CMP0006.html
2021-06-30cmake: Use CTest default (Fix #169) (#170)Mizux
note: this is the default behaviour when using include(CTest)
2020-10-15Bump version to v0.6.0v0.6.0Guillaume Chatelet
2020-10-12[NFC] Generate separate tables via macro (#137)Guillaume Chatelet
This is a non functional change, it allows: - Getting rid of `unix_features_aggregator` - Have a single blob describing the features - Fix wrong mocking of `hwcaps` Downside: abuse of macros makes the code slightly magical and harder to understand. It think it's still an improvement over the current situation as there's less repetition and less chances to get something wrong.
2020-10-09Remove need for utsname (#136)Guillaume Chatelet
2020-10-09Fix SSE detection on non-AVX CPUs (#135)Guillaume Chatelet
Fixes #4. This is based on #115 with a few modifications: - Removed use of __builtin_cpu_supports since it relies on cpuid and doesn't improve on the current situation, - Added detection for all of sse, sse2, sse3, ssse3, sse4_1 and sse4_2, - Added tests for Atom, Nehalem, and P3 processors, Thx to @gadoofou87 for providing the original PR. It also removes the need for #92 * Fix SSE detection on non-AVX CPUs * Fixes typo * Mock OSX sysctlbyname in tests * Also update other tests * FakeCpu is reset between each tests * Fix conflicting name on Windows * Disable pre AVX cpu sse detection tests on Windows * Guard OS specific code with macros * Fix missing import for tests * Fix wrong function prototype * Fix wrong mocking of P3 on Windows * Completely guard OS specific parts in x86 tests * Store DWORD instead unsigned long for x86 tests
2020-09-23Fix trailing spaces. (#133)Mizux
2020-09-21Bump version 0.1.0 -> 0.5.0 (Fix #118) (#129)Mizux
2020-03-11Fix shared build (#113)Nikita Karpey
* Fix PIC property in util library. * Force PIC when building shared lib on unix. * Enable CMP0077 for better option handling.
2020-03-11CMake: Enable CXX compiler for tests only (#110)Nikita Karpey
CMake: Enable CXX compiler for tests only Co-authored-by: Mizux <mizux.dev@gmail.com>
2020-02-06CMake: Add missing alias for cpu_feature (#107)Mizux
For customers using add_subdirectory() approach related to #106
2019-07-16Fix cmake installArtem Alekseev
2019-07-14Fix builds on BSDSteven Kreuzer
Fix the build on BSD by setting PROCESSOR_IS_X86 when CMAKE_SYSTEM_PROCESSOR matches amd64. Signed-off-by: Steven Kreuzer <skreuzer@FreeBSD.org>
2019-07-02Add support for leaf2 and leaf4 on Intel's x86 arch (#80)Artem Alekseev
* 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-02-13Add PIC option (#66)William Tambellini
2019-01-23Release ndk support (#62)Guillaume Chatelet
Fixes #47
2019-01-17Add partial implementation of ndk_compat (#54)Guillaume Chatelet
* First implementation of ndk_compat * Restrict building of linux_based_hardware_detection to UNIX * Fix variable declaration and printf formatting * Restrict ndk compat to UNIX style systems * Restrict cpu_mask index to 32 * Fix values display in ndk-compat-test * Addressing comments
2019-01-15UNIX works for Unix like OS so no need to add APPLE.Guillaume Chatelet
2019-01-15Fix discovery of <sys/auxv.h>Guillaume Chatelet
2019-01-15Add AMD64 and i386/i686 to x86 detectionGuillaume Chatelet
2019-01-15Use Cmake macros to detect getauxval and dlopenGuillaume Chatelet
2019-01-15Per arch build and inlining of cpuid_x86.Guillaume Chatelet
2018-05-22without cpu_features_macros.h in the install tree, the library cannotPeter Steinbach
be used after `make install`
2018-05-15powerpc: Added PowerPC implementationRashmica Gupta
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-03-27Add JSON output. Fixes #24Guillaume Chatelet
2018-02-13GCC does not discover all cpu features. Fixes #22Guillaume Chatelet
2018-02-13Update googletest management.Guillaume Chatelet
2018-02-12Fix typo in CMakeLists.txtGuillaume Chatelet
2018-02-12Adding CMake install. Fixes #18Guillaume Chatelet
2018-02-10Use fPIC when building as a shared libraryAlex Arslan
Also include a note stating that the use of shared libraries is discouraged.
2018-02-09Converts list_cpu_features to CGuillaume Chatelet
2018-02-08Fixes #14 - Defaulting to Release and no unit testGuillaume Chatelet
2018-02-01Adding code. Closes #0.Guillaume Chatelet