summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:42:39 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 13:41:07 +0000
commita36b7a6cb35b9a83aa5896caaab0c413c2c4fa95 (patch)
treecb2d21f1fb0156c1a74adea3591ffa2e5e57fa86 /core
parent56510b59458b5204b8a1265c9d3d867ee0347198 (diff)
downloadchrome-ec-a36b7a6cb35b9a83aa5896caaab0c413c2c4fa95.tar.gz
core/cortex-m/include/fpu.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I1ae03f882c46824c1e55a5f04022e8787bc6327a Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729819 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/include/fpu.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/core/cortex-m/include/fpu.h b/core/cortex-m/include/fpu.h
index 0949d336e2..d25e4ee552 100644
--- a/core/cortex-m/include/fpu.h
+++ b/core/cortex-m/include/fpu.h
@@ -12,24 +12,16 @@
static inline float sqrtf(float v)
{
float root;
- asm volatile(
- "fsqrts %0, %1"
- : "=w" (root)
- : "w" (v)
- );
+ asm volatile("fsqrts %0, %1" : "=w"(root) : "w"(v));
return root;
}
static inline float fabsf(float v)
{
float root;
- asm volatile(
- "fabss %0, %1"
- : "=w" (root)
- : "w" (v)
- );
+ asm volatile("fabss %0, %1" : "=w"(root) : "w"(v));
return root;
}
-#endif /* CONFIG_FPU */
+#endif /* CONFIG_FPU */
-#endif /* __CROS_EC_FPU_H */
+#endif /* __CROS_EC_FPU_H */