Subtraction operation x - y
.
Subtraction operation x - y
.
Addition operation x + y
.
Addition operation x + y
.
Multiplication operation x * y
.
Multiplication operation x * y
.
Operation which returns remainder from dividing x by y.
Operation which returns remainder from dividing x by y. The exact rules are defined in the concrete instance of the type T. A default implementation delegates to Integral[T].rem method for the corresponding type T. The default implementation can be overridden for any concrete type T.
Returns a value of type T, which corresponds to the given integer value x
.
Returns a value of type T, which corresponds to the given integer value x
.
Returns negative value -x
.
Returns negative value -x
.
A value of type T which corresponds to integer 1.
A value of type T which corresponds to integer 1.
Integer division operation x / y
.
A value of type T which corresponds to integer 0.
A value of type T which corresponds to integer 0.
Type-class which defines the operations on Integral types (Byte, Short, Int, Long, BigInt) with overflow checks.
An exception is raised when an overflow is detected. Each concrete instance of this type-class overrides three methods
plus
,minus
,times
.By default all the methods are implemented by delegating to the corresponding Integral instance from the standard Scala library.
This trait is used in core IR to avoid implicitly using standard scala implementations.