aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/arith_util.h
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-07-19 23:08:16 +0000
committerJerry Ge <jerry.ge@arm.com>2023-07-25 22:49:17 +0000
commit9c9c8dafe8f9a32bd70aee268cd537b93865a3ba (patch)
treee94fc471261b9f72bef86033fbc76022f55d5de8 /reference_model/src/arith_util.h
parentc1e13432b4a218781afd6b0171d4afff11730433 (diff)
downloadreference_model-9c9c8dafe8f9a32bd70aee268cd537b93865a3ba.tar.gz
Run clang-format and update copyright
- Also added run clang-format to pre-commit runs Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I4e59ac0afbaa30dce0773aa63d92a1a3b119e2f3
Diffstat (limited to 'reference_model/src/arith_util.h')
-rw-r--r--reference_model/src/arith_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/reference_model/src/arith_util.h b/reference_model/src/arith_util.h
index 76f3bb8..cab43ba 100644
--- a/reference_model/src/arith_util.h
+++ b/reference_model/src/arith_util.h
@@ -218,7 +218,8 @@ inline void float_trunc_bytes(float* src)
memcpy(src, &src_as_bytes, sizeof(float));
}
-inline void truncateFloatToBFloat(float* src, int64_t size) {
+inline void truncateFloatToBFloat(float* src, int64_t size)
+{
/* Set the least significant two bytes to zero for each float
value in the input src buffer. */
ASSERT_MEM(src);