From 8c3f04febb951d604cedc8e70b06f3db271e6273 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 15 Mar 2019 18:12:04 -0700 Subject: [PATCH] AndroidCPUInfo: reorder terms in conditional 'var != constant' is the preferred style for the library Change-Id: I226e6d5d80dddd0469808136605f49205d238341 --- src/dsp/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c index 8b40feed..0fa5b6a5 100644 --- a/src/dsp/cpu.c +++ b/src/dsp/cpu.c @@ -173,8 +173,8 @@ static int AndroidCPUInfo(CPUFeature feature) { const AndroidCpuFamily cpu_family = android_getCpuFamily(); const uint64_t cpu_features = android_getCpuFeatures(); if (feature == kNEON) { - return (cpu_family == ANDROID_CPU_FAMILY_ARM && - 0 != (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON)); + return cpu_family == ANDROID_CPU_FAMILY_ARM && + (cpu_features & ANDROID_CPU_ARM_FEATURE_NEON) != 0; } return 0; }