Int64

inline class Int64(val raw: Double) : Comparable<Int64>

Allocation-less Long implementation that uses a Double with reinterpreted values

IMPORTANT:

Due to Kotlin not supporting equals in inline classes, Equality fails in some cases where Int64 represents a NaN or an Infinity. For comparing Int64, use Int64.equalsSafe instead.

Constructors

Link copied to clipboard
constructor(raw: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val high: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val low: Int
Link copied to clipboard
val raw: Double
Link copied to clipboard
val ulow: UInt

Functions

Link copied to clipboard
infix fun and(other: Int64): Int64
Link copied to clipboard
open operator override fun compareTo(other: Int64): Int
Link copied to clipboard
operator fun div(other: Int64): Int64
Link copied to clipboard
fun equalsSafe(other: Int64): Boolean
Link copied to clipboard
fun inv(): Int64
Link copied to clipboard
operator fun minus(other: Int64): Int64
Link copied to clipboard
infix fun or(other: Int64): Int64
Link copied to clipboard
operator fun plus(other: Int64): Int64
Link copied to clipboard
operator fun rem(other: Int64): Int64
Link copied to clipboard
infix fun shl(other: Int): Int64
Link copied to clipboard
infix fun shr(other: Int): Int64
Link copied to clipboard
operator fun times(other: Int64): Int64
Link copied to clipboard
fun toInt(): Int
Link copied to clipboard
inline fun toLong(): Long
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): Int64
Link copied to clipboard
operator fun unaryPlus(): Int64
Link copied to clipboard
infix fun ushr(other: Int): Int64
Link copied to clipboard
infix fun xor(other: Int64): Int64