package core:math/fixed
Fixed :: struct($Backing: typeid, $Fraction_Width: uint = ) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {}
Related Procedures With Parameters
Fixed13_3 :: struct($Backing: i16, $Fraction_Width: uint = 3) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i16,
}
Fixed16_16 :: struct($Backing: i32, $Fraction_Width: uint = 16) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i32,
}
Fixed26_6 :: struct($Backing: i32, $Fraction_Width: uint = 6) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i32,
}
Fixed32_32 :: struct($Backing: i64, $Fraction_Width: uint = 32) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i64,
}
Fixed4_4 :: struct($Backing: i8, $Fraction_Width: uint = 4) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i8,
}
Fixed52_12 :: struct($Backing: i64, $Fraction_Width: uint = 12) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i64,
}
Fixed5_3 :: struct($Backing: i8, $Fraction_Width: uint = 3) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i8,
}
Fixed6_2 :: struct($Backing: i8, $Fraction_Width: uint = 2) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i8,
}
Fixed7_1 :: struct($Backing: i8, $Fraction_Width: uint = 1) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i8,
}
Fixed8_8 :: struct($Backing: i16, $Fraction_Width: uint = 8) where intrinsics.type_is_integer(Backing), 0 <= Fraction_Width, Fraction_Width <= 8 * size_of(Backing) {
i: i16,
}
This section is empty.
This section is empty.
append :: proc(dst: []u8, x: $T/Fixed($Backing, $Fraction_Width)) -> string {…}
ceil :: proc(x: $T/Fixed($Backing, $Fraction_Width)) -> $T {…}
div :: proc(x, y: $T/Fixed($Backing, $Fraction_Width)) -> (z: $T/Fixed($Backing, $Fraction_Width)) {…}
div_sat :: proc(x, y: $T/Fixed($Backing, $Fraction_Width)) -> (z: $T/Fixed($Backing, $Fraction_Width)) {…}
floor :: proc(x: $T/Fixed($Backing, $Fraction_Width)) -> $T {…}
init_from_f64 :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), val: f64) {…}
init_from_parts :: proc(x: ^$T/Fixed($Backing, $Fraction_Width), integer, fraction: $T) {…}
mul :: proc(x, y: $T/Fixed($Backing, $Fraction_Width)) -> (z: $T/Fixed($Backing, $Fraction_Width)) {…}
mul_sat :: proc(x, y: $T/Fixed($Backing, $Fraction_Width)) -> (z: $T/Fixed($Backing, $Fraction_Width)) {…}
round :: proc(x: $T/Fixed($Backing, $Fraction_Width)) -> $T {…}
to_f64 :: proc(x: $T/Fixed($Backing, $Fraction_Width)) -> f64 {…}
This section is empty.
Source Files
Generated with odin version dev-2024-11 (vendor "odin") Windows_amd64 @ 2024-11-16 21:10:09.906137400 +0000 UTC