summaryrefslogtreecommitdiff
path: root/vpx_ports/arm_cpudetect.c
diff options
context:
space:
mode:
authorclang-format <noreply@google.com>2016-07-25 14:22:32 -0700
committerJames Zern <jzern@google.com>2016-07-25 14:29:06 -0700
commit580f14b68bd2028c181d7e77fc3dfd49eb96ea8f (patch)
tree805034aab6dbc3304dd54dada4e4c57f15912af9 /vpx_ports/arm_cpudetect.c
parent82070ae9393b1e79559d81fcf1aa89c2e4aa58ee (diff)
downloadlibvpx-580f14b68bd2028c181d7e77fc3dfd49eb96ea8f.tar
libvpx-580f14b68bd2028c181d7e77fc3dfd49eb96ea8f.tar.gz
libvpx-580f14b68bd2028c181d7e77fc3dfd49eb96ea8f.tar.bz2
libvpx-580f14b68bd2028c181d7e77fc3dfd49eb96ea8f.zip
vpx_ports: apply clang-format
Change-Id: Ice343335a40238fd21490bce0ce2972bdcb87055
Diffstat (limited to 'vpx_ports/arm_cpudetect.c')
-rw-r--r--vpx_ports/arm_cpudetect.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/vpx_ports/arm_cpudetect.c b/vpx_ports/arm_cpudetect.c
index 8a4b8af96..d320ce8fa 100644
--- a/vpx_ports/arm_cpudetect.c
+++ b/vpx_ports/arm_cpudetect.c
@@ -71,23 +71,22 @@ int arm_cpu_caps(void) {
return flags;
}
mask = arm_cpu_env_mask();
- /* MSVC has no inline __asm support for ARM, but it does let you __emit
- * instructions via their assembled hex code.
- * All of these instructions should be essentially nops.
- */
+/* MSVC has no inline __asm support for ARM, but it does let you __emit
+ * instructions via their assembled hex code.
+ * All of these instructions should be essentially nops.
+ */
#if HAVE_MEDIA
- if (mask & HAS_MEDIA)
- __try {
+ if (mask & HAS_MEDIA) __try {
/*SHADD8 r3,r3,r3*/
__emit(0xE6333F93);
flags |= HAS_MEDIA;
} __except (GetExceptionCode() == EXCEPTION_ILLEGAL_INSTRUCTION) {
- /*Ignore exception.*/
- }
+ /*Ignore exception.*/
+ }
}
#endif /* HAVE_MEDIA */
#if HAVE_NEON || HAVE_NEON_ASM
-if (mask &HAS_NEON) {
+if (mask & HAS_NEON) {
__try {
/*VORR q0,q0,q0*/
__emit(0xF2200150);
@@ -117,8 +116,7 @@ int arm_cpu_caps(void) {
flags |= HAS_MEDIA;
#endif /* HAVE_MEDIA */
#if HAVE_NEON || HAVE_NEON_ASM
- if (features & ANDROID_CPU_ARM_FEATURE_NEON)
- flags |= HAS_NEON;
+ if (features & ANDROID_CPU_ARM_FEATURE_NEON) flags |= HAS_NEON;
#endif /* HAVE_NEON || HAVE_NEON_ASM */
return flags & mask;
}
@@ -169,7 +167,8 @@ int arm_cpu_caps(void) {
}
return flags & mask;
}
-#else /* end __linux__ */
-#error "--enable-runtime-cpu-detect selected, but no CPU detection method " \
+#else /* end __linux__ */
+#error \
+ "--enable-runtime-cpu-detect selected, but no CPU detection method " \
"available for your platform. Reconfigure with --disable-runtime-cpu-detect."
#endif