Skip to content

Commit c5ab6a2

Browse files
committed
moved comment
1 parent f1a071b commit c5ab6a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

backend/cmm_helpers.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,7 @@ let mod_int ?dividend_cannot_be_min_int c1 c2 dbg =
750750
| _, Some n ->
751751
if n = Nativeint.min_int
752752
then
753-
(* [divisor] must be positive be here since we already handled zero and
754-
min_int (the only negative power of 2).
755-
756-
Similarly to the division by min_int almost always being 0, modulo
753+
(* Similarly to the division by min_int almost always being 0, modulo
757754
min_int is almost always the identity, the exception being when the
758755
divisor is min_int *)
759756
bind "dividend" c1 (fun c1 ->
@@ -768,6 +765,8 @@ let mod_int ?dividend_cannot_be_min_int c1 c2 dbg =
768765
Any ))
769766
else if is_power_of_2_or_zero n
770767
then
768+
(* [divisor] must be positive be here since we already handled zero and
769+
min_int (the only negative power of 2). *)
771770
let l = Misc.log2_nativeint n in
772771
(* Algorithm:
773772

0 commit comments

Comments
 (0)