Software floating-point arithmetic with explicit rounding and exception state.
pub struct BF16(UInt16)pub(all) struct Context {
rounding : RoundingMode
tininess : TininessMode
flags : ExceptionFlags
specialization : Specialization
}pub struct ExceptionFlags(UInt)pub struct F16(UInt16)fn F16::round_to_int(self : F16, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[F16]fn F16::to_i32(self : F16, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int]fn F16::to_i64(self : F16, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn F16::to_ui32(self : F16, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn F16::to_ui64(self : F16, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]pub struct F32(UInt)fn F32::round_to_int(self : F32, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[F32]fn F32::to_i32(self : F32, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int]fn F32::to_i64(self : F32, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn F32::to_ui32(self : F32, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn F32::to_ui64(self : F32, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]pub struct F64(UInt64)fn F64::round_to_int(self : F64, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[F64]fn F64::to_i32(self : F64, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int]fn F64::to_i64(self : F64, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn F64::to_ui32(self : F64, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn F64::to_ui64(self : F64, context : Context, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]fn f16_round_to_int(context : Context, a : F16, rounding : RoundingMode, exact : Bool) -> SoftResult[F16]fn f16_to_i64(context : Context, a : F16, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn f16_to_ui32(context : Context, a : F16, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn f16_to_ui64(context : Context, a : F16, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]fn f32_round_to_int(context : Context, a : F32, rounding : RoundingMode, exact : Bool) -> SoftResult[F32]fn f32_to_i64(context : Context, a : F32, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn f32_to_ui32(context : Context, a : F32, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn f32_to_ui64(context : Context, a : F32, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]fn f64_round_to_int(context : Context, a : F64, rounding : RoundingMode, exact : Bool) -> SoftResult[F64]fn f64_to_i64(context : Context, a : F64, rounding : RoundingMode, exact : Bool) -> SoftResult[Int64]fn f64_to_ui32(context : Context, a : F64, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt]fn f64_to_ui64(context : Context, a : F64, rounding : RoundingMode, exact : Bool) -> SoftResult[UInt64]