mirror of
https://github.com/google/cpu_features.git
synced 2025-04-27 07:02:30 +02:00
Fix typos discovered by codespell
This commit is contained in:
parent
0189e5bb92
commit
dcddc4a2cb
@ -45,7 +45,7 @@ option(BUILD_SHARED_LIBS "Build library as shared." OFF)
|
|||||||
# Force PIC on unix when building shared libs
|
# Force PIC on unix when building shared libs
|
||||||
# see: https://en.wikipedia.org/wiki/Position-independent_code
|
# see: https://en.wikipedia.org/wiki/Position-independent_code
|
||||||
if(BUILD_SHARED_LIBS AND UNIX)
|
if(BUILD_SHARED_LIBS AND UNIX)
|
||||||
option(CMAKE_POSITION_INDEPENDENT_CODE "Build with Position Independant Code." ON)
|
option(CMAKE_POSITION_INDEPENDENT_CODE "Build with Position Independent Code." ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
|
@ -28,7 +28,7 @@ make mips32_test
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Docker layers
|
### Docker layers
|
||||||
Dockerfile is splitted in several stages.
|
Dockerfile is split in several stages.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ typedef enum {
|
|||||||
PPC_HAS_MMU, /* Memory management unit */
|
PPC_HAS_MMU, /* Memory management unit */
|
||||||
PPC_HAS_4xxMAC,
|
PPC_HAS_4xxMAC,
|
||||||
PPC_UNIFIED_CACHE, /* Unified instruction and data cache */
|
PPC_UNIFIED_CACHE, /* Unified instruction and data cache */
|
||||||
PPC_HAS_SPE, /* Signal processing extention unit */
|
PPC_HAS_SPE, /* Signal processing extension unit */
|
||||||
PPC_HAS_EFP_SINGLE, /* SPE single precision fpu */
|
PPC_HAS_EFP_SINGLE, /* SPE single precision fpu */
|
||||||
PPC_HAS_EFP_DOUBLE, /* SPE double precision fpu */
|
PPC_HAS_EFP_DOUBLE, /* SPE double precision fpu */
|
||||||
PPC_NO_TB, /* No timebase */
|
PPC_NO_TB, /* No timebase */
|
||||||
@ -116,7 +116,7 @@ typedef enum {
|
|||||||
PPC_POWER6_EXT,
|
PPC_POWER6_EXT,
|
||||||
PPC_ARCH_2_06, /* ISA 2.06 - POWER7 */
|
PPC_ARCH_2_06, /* ISA 2.06 - POWER7 */
|
||||||
PPC_HAS_VSX, /* Vector-scalar extension */
|
PPC_HAS_VSX, /* Vector-scalar extension */
|
||||||
PPC_PSERIES_PERFMON_COMPAT, /* Set of backwards compatibile performance
|
PPC_PSERIES_PERFMON_COMPAT, /* Set of backwards compatible performance
|
||||||
monitoring events */
|
monitoring events */
|
||||||
PPC_TRUE_LE,
|
PPC_TRUE_LE,
|
||||||
PPC_PPC_LE,
|
PPC_PPC_LE,
|
||||||
|
@ -126,7 +126,7 @@ typedef struct {
|
|||||||
// Calls cpuid and returns an initialized X86info.
|
// Calls cpuid and returns an initialized X86info.
|
||||||
X86Info GetX86Info(void);
|
X86Info GetX86Info(void);
|
||||||
|
|
||||||
// Returns cache hierarchy informations.
|
// Returns cache hierarchy information.
|
||||||
// Can call cpuid multiple times.
|
// Can call cpuid multiple times.
|
||||||
CacheInfo GetX86CacheInfo(void);
|
CacheInfo GetX86CacheInfo(void);
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ extern uint64_t android_getCpuFeatures(void);
|
|||||||
* This flag implies -mfpu=neon-vfpv4.
|
* This flag implies -mfpu=neon-vfpv4.
|
||||||
*
|
*
|
||||||
* -mcpu=iwmmxt
|
* -mcpu=iwmmxt
|
||||||
* Allows the use of iWMMXt instrinsics with GCC.
|
* Allows the use of iWMMXt intrinsics with GCC.
|
||||||
*
|
*
|
||||||
* IMPORTANT NOTE: These flags should only be tested when
|
* IMPORTANT NOTE: These flags should only be tested when
|
||||||
* android_getCpuFamily() returns ANDROID_CPU_FAMILY_ARM, i.e. this is a
|
* android_getCpuFamily() returns ANDROID_CPU_FAMILY_ARM, i.e. this is a
|
||||||
|
@ -8,7 +8,7 @@ FINISHED='\033[1;96m'
|
|||||||
NOCOLOR='\033[0m'
|
NOCOLOR='\033[0m'
|
||||||
ERROR='\033[0;31m'
|
ERROR='\033[0;31m'
|
||||||
|
|
||||||
echo -e "${ACTION}Checking environnement${NOCOLOR}"
|
echo -e "${ACTION}Checking environment${NOCOLOR}"
|
||||||
if [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
|
if [[ ! $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
|
||||||
then
|
then
|
||||||
echo -e "${ERROR}Invalid version number. Aborting. ${NOCOLOR}"
|
echo -e "${ERROR}Invalid version number. Aborting. ${NOCOLOR}"
|
||||||
@ -40,7 +40,7 @@ fi
|
|||||||
git update-index -q --refresh
|
git update-index -q --refresh
|
||||||
if ! git diff-index --quiet HEAD --
|
if ! git diff-index --quiet HEAD --
|
||||||
then
|
then
|
||||||
echo -e "${ERROR}Branch has uncommited changes. Aborting.${NOCOLOR}"
|
echo -e "${ERROR}Branch has uncommitted changes. Aborting.${NOCOLOR}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ static const PPCInfo kEmptyPPCInfo;
|
|||||||
PPCInfo GetPPCInfo(void) {
|
PPCInfo GetPPCInfo(void) {
|
||||||
/*
|
/*
|
||||||
* On Power feature flags aren't currently in cpuinfo so we only look at
|
* On Power feature flags aren't currently in cpuinfo so we only look at
|
||||||
* the auxilary vector.
|
* the auxiliary vector.
|
||||||
*/
|
*/
|
||||||
PPCInfo info = kEmptyPPCInfo;
|
PPCInfo info = kEmptyPPCInfo;
|
||||||
const HardwareCapabilities hwcaps = CpuFeatures_GetHardwareCapabilities();
|
const HardwareCapabilities hwcaps = CpuFeatures_GetHardwareCapabilities();
|
||||||
|
@ -122,7 +122,7 @@ TEST(CpuinfoMipsTest, Goldfish) {
|
|||||||
auto& fs = GetEmptyFilesystem();
|
auto& fs = GetEmptyFilesystem();
|
||||||
fs.CreateFile("/proc/cpuinfo", R"(system type : MIPS-Goldfish
|
fs.CreateFile("/proc/cpuinfo", R"(system type : MIPS-Goldfish
|
||||||
Hardware : goldfish
|
Hardware : goldfish
|
||||||
Revison : 1
|
Revision : 1
|
||||||
processor : 0
|
processor : 0
|
||||||
cpu model : MIPS 24Kc V0.0 FPU V0.0
|
cpu model : MIPS 24Kc V0.0 FPU V0.0
|
||||||
BogoMIPS : 1042.02
|
BogoMIPS : 1042.02
|
||||||
|
Loading…
x
Reference in New Issue
Block a user