Browse Source

add module for eval Int64 + UInt64 (#10411)

Aleksandr Kuzmenko 3 năm trước cách đây
mục cha
commit
e86231c83d
3 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      extra/CHANGES.txt
  2. 1 0
      std/eval/integers/Int64.hx
  3. 1 0
      std/eval/integers/UInt64.hx

+ 1 - 0
extra/CHANGES.txt

@@ -7,6 +7,7 @@
 	General improvements:
 
 	all : improved error messages upon directory creation failures (#10361)
+	eval : added `%` operator to `eval.numbers.Int64` and `eval.numbers.UInt64` (#10411)
 
 	Bugfixes:
 

+ 1 - 0
std/eval/integers/Int64.hx

@@ -100,6 +100,7 @@ package eval.integers;
 	@:op(A - B) inline function _sub(u:Int64):Int64 return this.sub(u);
 	@:op(A * B) inline function _mul(u:Int64):Int64 return this.mul(u);
 	@:op(A / B) inline function _div(u:Int64):Int64 return this.div(u);
+	@:op(A % B) inline function _mod(u:Int64):Int64 return this.remainder(u);
 	@:op(A & B) inline function _logand(u:Int64):Int64 return this.logand(u);
 	@:op(A | B) inline function _logor(u:Int64):Int64 return this.logor(u);
 	@:op(A ^ B) inline function _logxor(u:Int64):Int64 return this.logxor(u);

+ 1 - 0
std/eval/integers/UInt64.hx

@@ -93,6 +93,7 @@ package eval.integers;
 	@:op(A - B) inline function _sub(u:UInt64):UInt64 return this.sub(u);
 	@:op(A * B) inline function _mul(u:UInt64):UInt64 return this.mul(u);
 	@:op(A / B) inline function _div(u:UInt64):UInt64 return this.div(u);
+	@:op(A % B) inline function _mod(u:UInt64):UInt64 return this.remainder(u);
 	@:op(A & B) inline function _logand(u:UInt64):UInt64 return this.logand(u);
 	@:op(A | B) inline function _logor(u:UInt64):UInt64 return this.logor(u);
 	@:op(A ^ B) inline function _logxor(u:UInt64):UInt64 return this.logxor(u);