package core:math/fixed

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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 ¶

    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,
    }

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    add ¶

    add :: proc(x, y: $T/Fixed) -> $T/Fixed {…}

    append ¶

    append :: proc(dst: []u8, x: $T/Fixed($Backing, $Fraction_Width=)) -> string {…}

    ceil ¶

    ceil :: proc(x: $T/Fixed($Backing, $Fraction_Width=)) -> $T {…}

    div ¶

    div :: proc(x, y: $T/Fixed($Backing, $Fraction_Width=)) -> (z: $T/Fixed($Backing, $Fraction_Width=)) {…}

    div_sat ¶

    div_sat :: proc(x, y: $T/Fixed($Backing, $Fraction_Width=)) -> (z: $T/Fixed($Backing, $Fraction_Width=)) {…}

    floor ¶

    floor :: proc(x: $T/Fixed($Backing, $Fraction_Width=)) -> $T {…}

    init_from_f64 ¶

    init_from_f64 :: proc(x: ^$T/Fixed($Backing, $Fraction_Width=), val: f64) {…}

    init_from_parts ¶

    init_from_parts :: proc(x: ^$T/Fixed($Backing, $Fraction_Width=), integer, fraction: $T) {…}

    mul ¶

    mul :: proc(x, y: $T/Fixed($Backing, $Fraction_Width=)) -> (z: $T/Fixed($Backing, $Fraction_Width=)) {…}

    mul_sat ¶

    mul_sat :: proc(x, y: $T/Fixed($Backing, $Fraction_Width=)) -> (z: $T/Fixed($Backing, $Fraction_Width=)) {…}

    round ¶

    round :: proc(x: $T/Fixed($Backing, $Fraction_Width=)) -> $T {…}

    sub ¶

    sub :: proc(x, y: $T/Fixed) -> $T/Fixed {…}

    to_f64 ¶

    to_f64 :: proc(x: $T/Fixed($Backing, $Fraction_Width=)) -> f64 {…}

    to_string ¶

    to_string :: proc(x: $T/Fixed($Backing, $Fraction_Width=), allocator := context.allocator) -> string {…}

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-04 (vendor "odin") Windows_amd64 @ 2024-04-24 21:08:59.208697500 +0000 UTC