Companion

object Companion

Properties

Link copied to clipboard
const val FLOAT16_EXPONENT_BASE: Int = 15

Functions

Link copied to clipboard
Link copied to clipboard
fun fromBits(bits: Int): Half
fun fromBits(bits: Short): Half
fun fromBits(bits: UShort): Half
Link copied to clipboard
fun getFloatExp(bits: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getHalfExp(bits: UShort): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun packFloat(exp: Int, mantissa: Int, sign: Boolean): Int
Link copied to clipboard
fun packHalf(exp: Int, mantissa: Int, sign: Boolean): UShort