IntFunctions

object IntFunctions

Common functions for Int values.

Common functions for Int values.

class Object
trait Matchable
class Any

Value members

Concrete methods

@inline
def abs(a: Int): Int
@inline
def clip(in: Int, low: Int, high: Int): Int
@inline
def clip2(a: Int, b: Int): Int
@inline
def div(a: Int, b: Int): Int
@inline
def excess(a: Int, b: Int): Int
@inline
def fold(in: Int, low: Int, high: Int): Int
@inline
def fold2(a: Int, b: Int): Int
@inline
def gcd(a: Int, b: Int): Int
@inline
def isEven(i: Int): Boolean
@inline
def isOdd(i: Int): Boolean
@inline
def isPowerOfTwo(a: Int): Boolean
@inline
def lcm(a: Int, b: Int): Int
@inline
def max(a: Int, b: Int): Int
@inline
def min(a: Int, b: Int): Int
@inline
def mod(a: Int, b: Int): Int
@inline
def nextPowerOfTwo(a: Int): Int
@inline
def signum(a: Int): Int
@inline
def squared(a: Int): Long
@inline
def wrap(in: Int, low: Int, high: Int): Int
@inline
def wrap2(a: Int, b: Int): Int