mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
AndroidCPUInfo: reorder terms in conditional
'var != constant' is the preferred style for the library Change-Id: I226e6d5d80dddd0469808136605f49205d238341
This commit is contained in:
parent
fcfd9c71b4
commit
8c3f04febb
@ -173,8 +173,8 @@ static int AndroidCPUInfo(CPUFeature feature) {
|
|||||||
const AndroidCpuFamily cpu_family = android_getCpuFamily();
|
const AndroidCpuFamily cpu_family = android_getCpuFamily();
|
||||||
const uint64_t cpu_features = android_getCpuFeatures();
|
const uint64_t cpu_features = android_getCpuFeatures();
|
||||||
if (feature == kNEON) {
|
if (feature == kNEON) {
|
||||||
return (cpu_family == ANDROID_CPU_FAMILY_ARM &&
|
return cpu_family == ANDROID_CPU_FAMILY_ARM &&
|
||||||
0 != (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON));
|
(cpu_features & ANDROID_CPU_ARM_FEATURE_NEON) != 0;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user