package core:math/fixed

Index

Constants (0)

This section is empty.

Variables (0)

This section is empty.

Procedure Groups (0)

This section is empty.

Types

Fixed ¶

Fixed :: struct($Key: typeid, $Value: typeid) where intrinsics.type_is_valid_map_key(Key) {}

Fixed13_3 ¶

Fixed13_3 :: struct($Backing: i16, $Fraction_Width: uint = 8) 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 = 16) 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 = 32) 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 = 4) 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 = 4) 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 = 4) 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 "odin" (x, y: $T/Fixed) -> $T/Fixed {…}

append ¶

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

ceil ¶

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

div ¶

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

div_sat ¶

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

floor ¶

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

init_from_f64 ¶

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

init_from_parts ¶

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

mul ¶

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

mul_sat ¶

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

round ¶

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

sub ¶

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

to_f64 ¶

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

to_string ¶

to_string :: proc "odin" (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-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.414296100 +0000 UTC