Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Dec 10, 2024
1 parent 84a7541 commit dd7f662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2840,9 +2840,7 @@ final class JsonReader private[jsoniter_scala](
i -= 8
i >= first
}) {
x = (~x & mq) >>> 63
x += Math.multiplyHigh(m, q)
x += m >> 63 & q
x = Math.multiplyHigh(m, q) + (m >> 63 & q) + ((~x & mq) >>> 63) // TODO: when dropping JDK 17 support replace by Math.unsignedMultiplyHigh(m, q) + ((~x & mq) >>> 63)
}
}
var i = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2837,8 +2837,7 @@ final class JsonReader private[jsoniter_scala](
i -= 8
i >= first
}) {
x = (~x & mq) >>> 63
x += NativeMath.unsignedMultiplyHigh(m, q)
x = NativeMath.unsignedMultiplyHigh(m, q) + ((~x & mq) >>> 63)
}
}
var i = 0
Expand Down

0 comments on commit dd7f662

Please sign in to comment.