2
0
Эх сурвалжийг харах

[js] use Math.imul for haxe.Int32 multiplication

Dan Korostelev 9 жил өмнө
parent
commit
e2d30484fa
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      std/haxe/Int32.hx

+ 4 - 0
std/haxe/Int32.hx

@@ -197,4 +197,8 @@ abstract Int32(Int) from Int to Int {
 		return (x);
 		#end
 	}
+
+	static function __init__() {
+		untyped if (Math.imul != null) Int32.mul = Math.imul;
+	}
 }