Int128.opBinary

Support binary arithmetic operators + - * / % & | ^ << >> >>>

  1. Int128 opBinary(Int128 op2)
  2. Int128 opBinary(Int op2)
    struct Int128
    const
    opBinary
    (
    string op
    Int
    )
    (
    const Int op2
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    ||
    op == "%"
    ||
    op == "&"
    ||
    op == "|"
    ||
    op == "^"
    )
    &&
    is(Int : long)
    &&
    __traits(isIntegral, Int)
    )
  3. Int128 opBinary(IntLike op2)
  4. Int128 opBinary(long op2)
  5. Int128 opBinary(long op2)
  6. Int128 opBinary(long op2)

Parameters

op

one of the arithmetic binary operators

op2 Int

second operand

Return Value

Type: Int128

value after the operation is applied

Meta