aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/rem.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/rem.h')
-rw-r--r--riscv/insns/rem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/rem.h b/riscv/insns/rem.h
index 8587995..d2ee066 100644
--- a/riscv/insns/rem.h
+++ b/riscv/insns/rem.h
@@ -1,9 +1,9 @@
require_extension('M');
sreg_t lhs = sext_xlen(RS1);
sreg_t rhs = sext_xlen(RS2);
-if(rhs == 0)
+if (rhs == 0)
WRITE_RD(lhs);
-else if(lhs == INT64_MIN && rhs == -1)
+else if (lhs == INT64_MIN && rhs == -1)
WRITE_RD(0);
else
WRITE_RD(sext_xlen(lhs % rhs));