aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-07Snap for 10453563 from 6d28abb49625745335bfa37dc3d0e704b21cd5f3 to ↵aml_sdk_341710000aml_sdk_341510000aml_sdk_341410000aml_sdk_341110080aml_sdk_341110000aml_sdk_341010000aml_sdk_340912010android14-mainline-sdkext-releaseAndroid Build Coastguard Worker
mainline-sdkext-release Change-Id: I73801ac945f166520b8b332734154a8771c55441
2022-07-20Merge v0.7.0 into master. am: 47bd1869cd am: 5febe36e4e am: 4e0d6a4041 am: ↵android-14.0.0_r45android-14.0.0_r44android-14.0.0_r43android-14.0.0_r42android-14.0.0_r41android-14.0.0_r40android-14.0.0_r39android-14.0.0_r38android-14.0.0_r27android-14.0.0_r26android-14.0.0_r25android-14.0.0_r24android-14.0.0_r23android-14.0.0_r22android-14.0.0_r21android-14.0.0_r20android-14.0.0_r19android-14.0.0_r18android-14.0.0_r17android-14.0.0_r16aml_rkp_341810000aml_rkp_341510000aml_rkp_341311000aml_rkp_341114000aml_rkp_341015010aml_rkp_341012000aml_hef_341811030aml_hef_341717050aml_hef_341613000aml_hef_341512030aml_hef_341415040aml_hef_341311010aml_hef_341114030aml_cfg_341510000android14-qpr1-s2-releaseandroid14-qpr1-releaseandroid14-mainline-healthfitness-releaseandroid14-devandroid14-d2-s5-releaseandroid14-d2-s4-releaseandroid14-d2-s3-releaseandroid14-d2-s2-releaseandroid14-d2-s1-releaseandroid14-d2-releaseaml_rkp_341810000aml_hef_341811030Roland Levillain
ea9bafd934 am: 6dd8c6baee Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2158718 Change-Id: I93b1c0a813747241eaff4b2c915099f1b0234555 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20Merge v0.7.0 into master. am: 47bd1869cd am: 5febe36e4e am: 4e0d6a4041 am: ↵android-u-beta-1-gplmain-16k-with-phonesRoland Levillain
ea9bafd934 Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2158718 Change-Id: I0be6ba6b0e8c42accdfeec6c1a7f9b4407322599 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20Merge v0.7.0 into master. am: 47bd1869cd am: 5febe36e4e am: 4e0d6a4041Roland Levillain
Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2158718 Change-Id: I985cbc87033a5081138966d5720df9b4bc7ab783 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20Merge v0.7.0 into master. am: 47bd1869cd am: 5febe36e4eRoland Levillain
Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2158718 Change-Id: I12596ddd0aa8af946afbd7865849677891d81519 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-20Merge v0.7.0 into master. am: 47bd1869cdmain-16kRoland Levillain
Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2158718 Change-Id: Ie2cd87a7f5a5ad0cdfd5c416b530e1ac661545c3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-19Merge v0.7.0 into master.Roland Levillain
Adjust Android build system rules for recent changes in upstream cpu_features. Test: Run `atest -a --test-mapping external/cpu_features:all` (on x86-64 and Arm64 devices) Change-Id: Idd78a3a4f29247b2c83117bde98cca45f94908f2
2022-05-10Snap for 8564071 from 327c58ba644d5c05e2b4c18d481bc98660227a02 to ↵aml_sdk_331812000aml_sdk_331811100aml_sdk_331811000aml_sdk_331412000aml_sdk_331410000aml_sdk_331310010aml_sdk_331111000aml_sdk_330810050aml_sdk_330810010android13-mainline-sdkext-releaseAndroid Build Coastguard Worker
mainline-sdkext-release Change-Id: I0e05598653852745018387181eeb5dc89d3193b8
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676 am: 39430949fb am: ↵Florian Mayer
99ce48d49f am: f2eb1669a6 am: 327c58ba64 Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: I4f05f5c63da89c4cd3b5d11abc2a81cbac28fc1d
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676 am: 39430949fb am: ↵aml_tz4_332714070aml_tz4_332714050aml_tz4_332714010aml_tz4_331910000aml_tz4_331314030aml_tz4_331314020aml_tz4_331314010aml_tz4_331012050aml_tz4_331012040aml_tz4_331012000android13-mainline-tzdata4-releaseaml_tz4_332714010Florian Mayer
99ce48d49f am: f2eb1669a6 Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: Id026197c13189fa4a50d097df36948fa8cf54214
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676 am: 39430949fb am: ↵Florian Mayer
99ce48d49f am: f2eb1669a6 Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: Ia6942cbaff78209987fb61c14c5e04b4eb16aab7
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676 am: 39430949fb am: ↵t_frc_odp_330442040t_frc_odp_330442000t_frc_ase_330444010android-13.0.0_r83android-13.0.0_r82android-13.0.0_r81android-13.0.0_r80android-13.0.0_r79android-13.0.0_r78android-13.0.0_r77android-13.0.0_r76android-13.0.0_r75android-13.0.0_r74android-13.0.0_r73android-13.0.0_r72android-13.0.0_r71android-13.0.0_r70android-13.0.0_r69android-13.0.0_r68android-13.0.0_r67android-13.0.0_r66android-13.0.0_r65android-13.0.0_r64android-13.0.0_r63android-13.0.0_r62android-13.0.0_r61android-13.0.0_r60android-13.0.0_r59android-13.0.0_r58android-13.0.0_r57android-13.0.0_r56android-13.0.0_r54android-13.0.0_r53android-13.0.0_r52android-13.0.0_r51android-13.0.0_r50android-13.0.0_r49android-13.0.0_r48android-13.0.0_r47android-13.0.0_r46android-13.0.0_r45android-13.0.0_r44android-13.0.0_r43android-13.0.0_r42android-13.0.0_r41android-13.0.0_r40android-13.0.0_r39android-13.0.0_r38android-13.0.0_r37android-13.0.0_r36android-13.0.0_r35android-13.0.0_r34android-13.0.0_r33android-13.0.0_r32aml_go_odp_330912000aml_go_ads_330915100aml_go_ads_330915000aml_go_ads_330913000android13-qpr3-s9-releaseandroid13-qpr3-s8-releaseandroid13-qpr3-s7-releaseandroid13-qpr3-s6-releaseandroid13-qpr3-s5-releaseandroid13-qpr3-s4-releaseandroid13-qpr3-s3-releaseandroid13-qpr3-s2-releaseandroid13-qpr3-s14-releaseandroid13-qpr3-s13-releaseandroid13-qpr3-s12-releaseandroid13-qpr3-s11-releaseandroid13-qpr3-s10-releaseandroid13-qpr3-s1-releaseandroid13-qpr3-releaseandroid13-qpr3-c-s8-releaseandroid13-qpr3-c-s7-releaseandroid13-qpr3-c-s6-releaseandroid13-qpr3-c-s5-releaseandroid13-qpr3-c-s4-releaseandroid13-qpr3-c-s3-releaseandroid13-qpr3-c-s2-releaseandroid13-qpr3-c-s12-releaseandroid13-qpr3-c-s11-releaseandroid13-qpr3-c-s10-releaseandroid13-qpr3-c-s1-releaseandroid13-qpr2-s9-releaseandroid13-qpr2-s8-releaseandroid13-qpr2-s7-releaseandroid13-qpr2-s6-releaseandroid13-qpr2-s5-releaseandroid13-qpr2-s3-releaseandroid13-qpr2-s2-releaseandroid13-qpr2-s12-releaseandroid13-qpr2-s11-releaseandroid13-qpr2-s10-releaseandroid13-qpr2-s1-releaseandroid13-qpr2-releaseandroid13-qpr2-b-s1-releaseandroid13-mainline-go-adservices-releaseandroid13-frc-odp-releaseandroid13-devandroid13-d4-s2-releaseandroid13-d4-s1-releaseandroid13-d4-releaseandroid13-d3-s1-releaseFlorian Mayer
99ce48d49f Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: I8ee0ecc2edfdb84bcc28d160f69274a6d38c9d69
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676 am: 39430949fbFlorian Mayer
Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: I65892f813e8be43e8b4c0d50cdc151febca43e4e
2022-03-22Add cpu_features to hwasan-postsubmit am: 7783526676Florian Mayer
Original change: https://android-review.googlesource.com/c/platform/external/cpu_features/+/2034603 Change-Id: Ic9bace9a16d2c06960abe62a9aca38a19fb354d0
2022-03-21Add cpu_features to hwasan-postsubmitFlorian Mayer
Test: Run tests under HWASan. Bug: 193568145 Change-Id: I99fbe56b2daa33cada8e7adecc65397cb1c52eca
2022-03-08Release v0.7.0Guillaume Chatelet
2022-03-08Fix release scriptGuillaume Chatelet
2022-02-22replace sse3 detection with pni when reading /proc/cpuinfo (#225)jmfriedt
2022-02-22Fix include paths in BUILD (#226)Peter Gavin
Include paths should be specified through includes rather than copts, so that they are handled correctly when cpu_features is included in another project as an external repository.
2022-02-18Add support for ZHAOXIN CPU (#218)AnvilaWang
2022-02-17Fix windows amd64 ciMykola Hohsdze
2022-02-03[NFC] Add bazel support to cpu_features (#222)Guillaume Chatelet
2022-02-01Fix a getauxval comment and expand the Krait idiv workaround (#206)Ryan Prichard
* Fix getauxval comment (API 18 not 20) getauxval is available in Android starting with API 18, not 20. The comment about __ANDROID_API__ appears to have been copied from the NDK's cpufeatures, which always uses dlopen/dlsym and doesn't assume it can directly call getauxval, even if __ANDROID_API__ is new enough. With this project, though, when __ANDROID_API__ is 18 or up, the CMakeLists.txt file would detect that getauxval is available and define HAVE_STRONG_GETAUXVAL. * Broaden Qualcomm Krait idiv workaround Some Qualcomm Krait CPUs have IDIV support but the kernel doesn't report it. Previously, this code looked for two CPUs: - 0x510006F2 (0x51/'Q', variant 0, part 0x06f, rev 2) - 0x510006F3 (0x51/'Q', variant 0, part 0x06f, rev 3) This check misses my 2013 Nexus 7 device, which has this CPU ID: - 0x511006f0 (0x51/'Q', variant 1, part 0x06f, rev 0) My Nexus 7 device doesn't report idiv through AT_HWCAP or through /proc/cpuinfo (AT_HWCAP is 0x1b0d7). Expand the check to anything with: - implementer 0x51 - architecture 7 - part 0x4d or 0x6f Part 0x4d appears to be a dual-core Krait (e.g. see https://crbug.com/341598#c43). This new matching behavior is a subset of what the upstream kernel does (patch[1] contributed by CodeAurora), and also closely matches the behavior of pytorch/cpuinfo. [1] https://github.com/torvalds/linux/commit/120ecfafabec382c4feb79ff159ef42a39b6d33b
2022-01-31Fix list_cpu_features.exe does not detect SSE42 on Xeon X5650 (Windows) (#220)Mykola Hohsadze
2022-01-24Rename 'master' branch into 'main' (#219)Guillaume Chatelet
2022-01-14[x86] Embed brand_string and mark FillX86BrandString as deprecated (#214)upstream-masterGuillaume Chatelet
2022-01-14[NFC] Avoid polluting global scopeGuillaume Chatelet
2022-01-14[NFC][x86] Read all cpuid leaves at once (#213)Guillaume Chatelet
This patch reads the most important cpuid leaves and stores the data in a struct. A followup patch will inline micro architecture detection and brand string inside X86Info so we don't have to call `ReadLeaves` multiple times. This wil allow further simplification of `HasSecondFMA` and help fix https://github.com/google/cpu_features/issues/200.
2021-11-30Fix arm64 detection precedence in CMakeLists.txt (#209)Guillaume Chatelet
Fixes #179
2021-11-22Fix #205Guillaume Chatelet
Since buffers are a few tens of bytes there is no need for optimized memfunctions. For compile time sizes, the compiler will generate optimal code already.
2021-11-16fix googletest downloadMykola Hohsdze
2021-10-29Fix missing headerGuillaume Chatelet
2021-10-29make copy and equals inline headersGuillaume Chatelet
2021-10-29Silence unsused parametersGuillaume Chatelet
2021-10-29Make getter/setter static so they don't leakGuillaume Chatelet
2021-10-29Fix CpuFeatures_memchr to actually use the provided size argumentGuillaume Chatelet
2021-10-29Update uarch detection for Intel processors (#184)Nikolay Hohsadze
2021-10-28Update README.mdGuillaume Chatelet
2021-10-28ci: Update Linux jobs to run inside a docker container.Corentin Le Molgat
2021-10-28ci: Add docker based test frameworkCorentin Le Molgat
* Add documentation * Add .dockerignore: minimize docker context size to improve speed * Add Makefile: to easily run various docker stages * Add a CMake sample project to check CMake install rules
2021-10-28scripts: Fixup for run_integration.shCorentin Le Molgat
2021-10-28NFC remove reference to libc memory functionsGuillaume Chatelet
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-27Update README.md (#193)Guillaume Chatelet
Change `Quickstart` section to match new default value for testing.
2021-10-27Update README.mdCorentin Le Molgat
2021-10-27ci: Fix windows workflow filenameMizux Seiha
2021-10-27ci: Drop use of Travis-CI and AppveyorMizux Seiha
2021-10-27cmake: Fix enabling ndk_compatCorentin Le Molgat
2021-10-26Override CacheInfo only if new data is available via Deterministic Cache ↵Guillaume Chatelet
Parameters Leaf #190
2021-10-26ci: Migrate FreeBSD to macos-10.15 virtual env (#191)Mizux
note: In preparation to https://github.com/actions/virtual-environments/issues/4060 which will drop Vagrant/VirtualBox ref: https://github.com/actions/virtual-environments/pull/4010