Skip to content

Commit

Permalink
Update Int128.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeGuyWhoLovesCoding authored Sep 3, 2024
1 parent 06be641 commit 052021e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/haxe/Int128.hx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ abstract Int128(__Int128) from __Int128 to __Int128 {
Returns the product of `a` and `b`.
**/
@:op(A * B)
private static var halfBitAmt32:Int64 = 32; // Don't create a new Int64 every time we input 32.
private static var halfBitAmt32:Int64 = 32; // Don't create a new Int64 every time we input 32. This is a very minor optimization that improves performance.
public static #if !lua inline #end function mul(a:Int128, b:Int128):Int128 {
var mask = Int64Helper.maxValue32U;
var aLow = a.low & mask, aHigh = a.low >>> halfBitAmt32;
Expand Down

0 comments on commit 052021e

Please sign in to comment.