abla/float
Generated from source.
Import with import "abla/float".
Source: abla/float/entry.ab
ablaBitF64ToI64 (extern)
noescape extern:"intrinsic" fun ablaBitF64ToI64(value: f64): int
Returns the unchanged f64 bit pattern as a signed 64-bit integer.
ablaBitI64ToF64 (extern)
noescape extern:"intrinsic" fun ablaBitI64ToF64(value: int): f64
Returns the f64 whose bit pattern is the 64 bits of value.
ablaConvertI64ToF64 (extern)
noescape extern:"intrinsic" fun ablaConvertI64ToF64(value: int): f64
Returns the nearest f64 to the signed integer value, rounding ties to even.
ablaBitF32ToI32 (extern)
noescape extern:"intrinsic" fun ablaBitF32ToI32(value: f32): int
Returns the f32 bit pattern in the low 32 bits of the result with zeros in the high bits.
ablaBitI32ToF32 (extern)
noescape extern:"intrinsic" fun ablaBitI32ToF32(value: int): f32
Returns the f32 whose bit pattern is the low 32 bits of value.
ablaConvertU32ToF32 (extern)
noescape extern:"intrinsic" fun ablaConvertU32ToF32(value: u32): f32
Returns the nearest f32 to the unsigned integer value, rounding ties to even.
ablaConvertI32ToF32 (extern)
noescape extern:"intrinsic" fun ablaConvertI32ToF32(value: i32): f32
Returns the nearest f32 to the signed integer value, rounding ties to even.
ablaConvertF32ToU32 (extern)
noescape extern:"intrinsic" fun ablaConvertF32ToU32(value: f32): u32
Returns value truncated toward zero and clamped to the u32 range, with NaN returning zero.
ablaConvertF32ToI32 (extern)
noescape extern:"intrinsic" fun ablaConvertF32ToI32(value: f32): i32
Returns value truncated toward zero and clamped to the i32 range, with NaN returning zero.
ablaConvertF64ToF32 (extern)
noescape extern:"intrinsic" fun ablaConvertF64ToF32(value: f64): f32
Returns value rounded to f32 with ties to even, producing signed infinity on overflow.
ablaConvertF32ToF64 (extern)
noescape extern:"intrinsic" fun ablaConvertF32ToF64(value: f32): f64
Returns value widened to f64, preserving every finite value exactly.
ablaConvertF64ToI64 (extern)
noescape extern:"intrinsic" fun ablaConvertF64ToI64(value: f64): int
Returns value truncated toward zero and clamped to the int range, with NaN returning zero.
f64ToBits (fun)
fun f64ToBits(value: f64): int
Returns the unchanged bit pattern of value as a signed 64-bit integer.
f64FromBits (fun)
fun f64FromBits(value: int): f64
Interprets the 64 bits of value as an f64, without numeric conversion.
f64FromInt (fun)
fun f64FromInt(value: int): f64
Converts value to the nearest f64, rounding ties to even.
f32ToBits (fun)
fun f32ToBits(value: f32): u32
Returns the unchanged bit pattern of value as an unsigned 32-bit integer.
f32FromBits (fun)
fun f32FromBits(value: u32): f32
Interprets the 32 bits of value as an f32, without numeric conversion.
f32FromU32 (fun)
fun f32FromU32(value: u32): f32
Converts unsigned value to the nearest f32, rounding ties to even.
f32FromI32 (fun)
fun f32FromI32(value: i32): f32
Converts signed value to the nearest f32, rounding ties to even.
f32ToU32 (fun)
fun f32ToU32(value: f32): u32
Truncates value toward zero and saturates to the u32 range. NaN yields zero.
f32ToI32 (fun)
fun f32ToI32(value: f32): i32
Truncates value toward zero and saturates to the i32 range. NaN yields zero.
f32FromInt (fun)
fun f32FromInt(value: int): f32
The f32 nearest value (ties to even). Past 2^53 an f64 can't hold it, and rounding twice would be wrong by one unit: the low bits are kept as one sticky bit, which makes the f64 exact enough for the f32's rounding.
f32ToInt (fun)
fun f32ToInt(value: f32): int
Toward zero and saturating, like f64ToInt; NaN gives 0.
f64ToF32 (fun)
fun f64ToF32(value: f64): f32
Narrow to the nearest f32 (round to nearest even), e.g. for GPU buffers.
f32ToF64 (fun)
fun f32ToF64(value: f32): f64
Widen exactly.
f64ToInt (fun)
fun f64ToInt(value: f64): int
Truncate toward zero, saturating on every target: NaN -> 0, and values beyond the int range clamp to its ends (Wasm i64.trunc_sat semantics).
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.