summaryrefslogtreecommitdiff
path: root/core/nds32/math.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:44:34 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 19:20:38 +0000
commit7e67c3fa797f906582245e8f9765aa38ee6dcd66 (patch)
treee9f4b13b46c0ff8945d8a9b6b7bbc5866520c729 /core/nds32/math.c
parent2680606d60c58dbf918642f92d0ef0cd7c6f7b63 (diff)
downloadchrome-ec-7e67c3fa797f906582245e8f9765aa38ee6dcd66.tar.gz
core/nds32/math.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: If7765817f6b011a170d3efa14c8953cf46dbee89 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729864 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'core/nds32/math.c')
-rw-r--r--core/nds32/math.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/nds32/math.c b/core/nds32/math.c
index 496fcc0e5d..c8f695804e 100644
--- a/core/nds32/math.c
+++ b/core/nds32/math.c
@@ -12,19 +12,19 @@ union ieee_float_shape_type {
};
/* Get a 32 bit int from a float. */
-#define GET_FLOAT_WORD(i, d) \
- do { \
+#define GET_FLOAT_WORD(i, d) \
+ do { \
union ieee_float_shape_type gf_u; \
- gf_u.value = (d); \
- (i) = gf_u.word; \
+ gf_u.value = (d); \
+ (i) = gf_u.word; \
} while (0)
/* Set a float from a 32 bit int. */
-#define SET_FLOAT_WORD(d, i) \
- do { \
+#define SET_FLOAT_WORD(d, i) \
+ do { \
union ieee_float_shape_type sf_u; \
- sf_u.word = (i); \
- (d) = sf_u.value; \
+ sf_u.word = (i); \
+ (d) = sf_u.value; \
} while (0)
float fabsf(float x)