CostingInteger

scalus.uplc.eval.CostModel$package.CostingInteger

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def apply(value: Long): CostingInteger
def fromBigInt(value: BigInt): CostingInteger
def satMinus(a: Long, b: Long): Long

Saturating subtraction

Saturating subtraction

Attributes

def satMul(a: Long, b: Long): Long

Saturating multiplication

Saturating multiplication

Attributes

def satPlus(a: Long, b: Long): Long

Saturating addition - returns Long.MaxValue on positive overflow, Long.MinValue on negative overflow

Saturating addition - returns Long.MaxValue on positive overflow, Long.MinValue on negative overflow

Attributes

Givens

Extensions

Extensions

extension (a: CostingInteger)
inline def *(b: CostingInteger): CostingInteger
inline def +(b: CostingInteger): CostingInteger
inline def -(b: CostingInteger): CostingInteger
inline def /(b: CostingInteger): CostingInteger
inline def <(b: CostingInteger): Boolean
inline def <=(b: CostingInteger): Boolean
inline def ==(b: CostingInteger): Boolean
inline def >(b: CostingInteger): Boolean
inline def >=(b: CostingInteger): Boolean
inline def toLong: Long