1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-28 15:33:37 +02:00

387 Commits

Author SHA1 Message Date
Guillaume Chatelet
5177c6974f Declare CMAKE_SYSTEM_NAME/SYSTEM for Linaro builds 2019-01-15 10:19:06 +01:00
Guillaume Chatelet
78635347db
Merge pull request #42 from fuzun/master
Small changes made according to static analyzer results
2018-09-11 17:36:37 +02:00
fuzun
954eb4cc58 Revert "Cast added for macros in test for new IsBitSet"
This reverts commit 78223d1be73c551ec75603166260841296ab41e2.
2018-09-11 17:43:40 +03:00
fuzun
f6c8a5d92d Revert "Different approach for -1 & true compliance"
This reverts commit 58a232c560cbd5d341aeb67b890cbe263528a755.
2018-09-11 17:24:35 +03:00
fuzun
78223d1be7 Cast added for macros in test for new IsBitSet 2018-09-08 06:12:07 +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
fuzun
f189298f4f Revert "Change feature variables to unsigned int to fully comply with 'true' and 'false' & IsBitSet()"
This reverts commit 319bd6f26be9232cc534e376f1d1ce50505394c2.
2018-09-08 05:16:00 +03:00
Guillaume Chatelet
8ba03e9d24
Fix CI for Mips v0.2.0 2018-09-07 15:54:51 +02:00
Guillaume Chatelet
dab7cea707 Fix -Wunused-function warning. 2018-09-07 15:17:44 +02:00
fuzun
68462fb78f Suppress analysis warning 2018-08-30 06:22:54 +03:00
fuzun
9d9134cf0b Parantheses added to CPUID macro 2018-08-30 06:13:02 +03:00
fuzun
319bd6f26b Change feature variables to unsigned int to fully comply with 'true' and 'false' & IsBitSet()
It seems that ' : 1' alignments cause signed integers to be either -1 or 0. While -1 is true and 0 is false reverse might not be always correct when true is defined 1.

Maybe change feature variables to bool ?
2018-08-30 06:11:35 +03:00
Guillaume Chatelet
26133d3b62 Match function definition and declaration arguments. 2018-06-20 09:18:57 +02:00
Guillaume Chatelet
9f9a8d4b6e
Merge pull request #37 from psteinb/adding-missing-header
without cpu_features_macros.h in the install tree, the library cannot
2018-06-19 11:11:36 +02:00
Peter Steinbach
ce4637008d without cpu_features_macros.h in the install tree, the library cannot
be used after `make install`
2018-05-22 10:09:00 +02:00
Guillaume Chatelet
06d4f52f7e
Update README.md to add support for POWER. 2018-05-15 11:24:37 +02:00
Guillaume Chatelet
d5e3985359
Delete .cpuinfo_ppc.h.swp 2018-05-15 10:46:12 +02:00
Guillaume Chatelet
7e1035c5fc
Merge pull request #36 from RashmicaG/master
Add Power support
2018-05-15 10:42:42 +02:00
Rashmica Gupta
bc1066c128
travis: Add PowerPC jobs
Signed-off-by: Rashmica Gupta <rashmica.gupta@au1.ibm.com>
2018-05-15 14:25:03 +10: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
Guillaume Chatelet
a5093bbe7c
Merge pull request #35 from Leandros/master
Explicitly namespace every extern identifier
2018-05-04 09:50:07 +02: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
8d726f81f0 Merge remote-tracking branch 'original/master' 2018-05-04 09:26:13 +02:00
Guillaume Chatelet
6cfe2326b6
Fix missing line feed in .clang-format 2018-05-04 08:46:51 +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
7eca4a7a39
Merge pull request #33 from google/json_output2
Add JSON output. Fixes #24
2018-03-27 15:53:06 +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
Guillaume Chatelet
68479a8cf9 Fixing unneeded whitespaces 2018-02-21 10:15:22 +01:00
Guillaume Chatelet
9c56b0385e
Merge pull request #27 from google/cross_compilation
Adding cross compilation. Fixes #13.
2018-02-16 17:11:54 +01:00
Guillaume Chatelet
894c2dc1a7 Fix shellcheck warnings. 2018-02-16 16:45:33 +01:00
Guillaume Chatelet
6da37f5dd0 Factor in mips-mti-linux-gnu for mips 2018-02-16 15:09:51 +01:00
Guillaume Chatelet
9233afb83b Remove non standard tools 2018-02-16 14:38:05 +01:00
Guillaume Chatelet
6446b42567 Add Mips compilation support 2018-02-16 14:17:10 +01:00
Guillaume Chatelet
c1de7c935e Update QEMU config and path 2018-02-15 14:16:25 +01:00
Guillaume Chatelet
59cb104692 Trigger build when run within travis 2018-02-15 13:57:06 +01:00
Guillaume Chatelet
245c812f10 Update cross compilation script 2018-02-15 13:51:08 +01:00
Guillaume Chatelet
5ec8408da3 Fix invalid linaro url.wq 2018-02-14 14:40:22 +01:00
Guillaume Chatelet
5a9819ce82 Update cross compilation scripts. 2018-02-14 14:34:46 +01:00
Guillaume Chatelet
54e27126e6 Cache is not shared between builds, prevent full qemu compilation 2018-02-14 11:04:15 +01:00
Guillaume Chatelet
499786392e update travis.yml.wq 2018-02-14 10:57:34 +01:00
Guillaume Chatelet
bce8959aca Add aarch64 cross compilation. 2018-02-14 10:54:20 +01:00
Guillaume Chatelet
5e016e4f1b Make toolchain persistent accross runs 2018-02-14 09:59:29 +01:00
Guillaume Chatelet
a25b5cbe7e Test travis cross compilation 2018-02-14 09:41:51 +01:00