Int64.hx 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package jvm;
  2. @:notNull @:runtimeValue @:coreType extern abstract Int64 from Int from Float {
  3. @:op(A + B) public static function addI(lhs:Int64, rhs:Int):Int64;
  4. @:op(A + B) public static function add(lhs:Int64, rhs:Int64):Int64;
  5. @:op(A * B) public static function mulI(lhs:Int64, rhs:Int):Int64;
  6. @:op(A * B) public static function mul(lhs:Int64, rhs:Int64):Int64;
  7. @:op(A % B) public static function modI(lhs:Int64, rhs:Int):Int64;
  8. @:op(A % B) public static function mod(lhs:Int64, rhs:Int64):Int64;
  9. @:op(A - B) public static function subI(lhs:Int64, rhs:Int):Int64;
  10. @:op(A - B) public static function sub(lhs:Int64, rhs:Int64):Int64;
  11. @:op(A / B) public static function divI(lhs:Int64, rhs:Int):Int64;
  12. @:op(A / B) public static function div(lhs:Int64, rhs:Int64):Int64;
  13. @:op(A | B) public static function orI(lhs:Int64, rhs:Int):Int64;
  14. @:op(A | B) public static function or(lhs:Int64, rhs:Int64):Int64;
  15. @:op(A ^ B) public static function xorI(lhs:Int64, rhs:Int):Int64;
  16. @:op(A ^ B) public static function xor(lhs:Int64, rhs:Int64):Int64;
  17. @:op(A & B) public static function andI(lhs:Int64, rhs:Int):Int64;
  18. @:op(A & B) public static function and(lhs:Int64, rhs:Int64):Int64;
  19. @:op(A << B) public static function shlI(lhs:Int64, rhs:Int):Int64;
  20. @:op(A << B) public static function shl(lhs:Int64, rhs:Int64):Int64;
  21. @:op(A >> B) public static function shrI(lhs:Int64, rhs:Int):Int64;
  22. @:op(A >> B) public static function shr(lhs:Int64, rhs:Int64):Int64;
  23. @:op(A >>> B) public static function ushrI(lhs:Int64, rhs:Int):Int64;
  24. @:op(A >>> B) public static function ushr(lhs:Int64, rhs:Int64):Int64;
  25. @:op(A > B) public static function gt(lhs:Int64, rhs:Int64):Bool;
  26. @:op(A >= B) public static function gte(lhs:Int64, rhs:Int64):Bool;
  27. @:op(A < B) public static function lt(lhs:Int64, rhs:Int64):Bool;
  28. @:op(A <= B) public static function lte(lhs:Int64, rhs:Int64):Bool;
  29. @:op(~A) public static function bneg(t:Int64):Int64;
  30. @:op(-A) public static function neg(t:Int64):Int64;
  31. @:op(++A) public static function preIncrement(t:Int64):Int64;
  32. @:op(A++) public static function postIncrement(t:Int64):Int64;
  33. @:op(--A) public static function preDecrement(t:Int64):Int64;
  34. @:op(A--) public static function postDecrement(t:Int64):Int64;
  35. }