aboutsummaryrefslogtreecommitdiff
path: root/target/arm
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-07-30 16:16:35 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-08-25 10:48:50 +0100
commitfc7a5038a6b70a3e474e58a5ed9845e4f5eed6dd (patch)
tree8db9e57f7273980a2bec5ec0409aaaf4289eff72 /target/arm
parent075e7e97e3a042854b8ea2827559891a577b4a6b (diff)
downloadqemu-fc7a5038a6b70a3e474e58a5ed9845e4f5eed6dd.zip
qemu-fc7a5038a6b70a3e474e58a5ed9845e4f5eed6dd.tar.gz
qemu-fc7a5038a6b70a3e474e58a5ed9845e4f5eed6dd.tar.bz2
target/arm: Re-indent sdiv and udiv helpers
We're about to make a code change to the sdiv and udiv helper functions, so first fix their indentation and coding style. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210730151636.17254-2-peter.maydell@linaro.org
Diffstat (limited to 'target/arm')
-rw-r--r--target/arm/helper.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 155d8bf..8e9c2a2 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -9355,17 +9355,20 @@ uint32_t HELPER(uxtb16)(uint32_t x)
int32_t HELPER(sdiv)(int32_t num, int32_t den)
{
- if (den == 0)
- return 0;
- if (num == INT_MIN && den == -1)
- return INT_MIN;
+ if (den == 0) {
+ return 0;
+ }
+ if (num == INT_MIN && den == -1) {
+ return INT_MIN;
+ }
return num / den;
}
uint32_t HELPER(udiv)(uint32_t num, uint32_t den)
{
- if (den == 0)
- return 0;
+ if (den == 0) {
+ return 0;
+ }
return num / den;
}