Skip to content

Commit

Permalink
Add curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenger committed Sep 15, 2023
1 parent 076c251 commit 219d2f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javalib/src/main/scala/java/lang/Math.scala
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ object Math {
else overflow.value
}

@alwaysinline def multiplyHigh(a: scala.Long, b: scala.Long): scala.Long =
@alwaysinline def multiplyHigh(a: scala.Long, b: scala.Long): scala.Long = {
val u0 = (a & 0xffffffffL).toULong
val u1 = (a >> 32)
val v0 = (b & 0xffffffffL).toULong
Expand All @@ -200,6 +200,7 @@ object Math {
val w2 = t >> 32
val w3 = (v1.toULong * u0).toLong + w1
u1 * v1 + w2 + (w1 >> 16)
}

@alwaysinline def multiplyExact(a: scala.Long, b: scala.Int): scala.Long =
multiplyExact(a, b.toLong)
Expand Down

0 comments on commit 219d2f4

Please sign in to comment.