std.math.fixed
The module module std.math.fixed, read from deploy/std/math/fixed.rho. This page is generated from the source, so it describes what the code declares.
Functions
q16_add()
fn q16_add(a: Q16_16, b: Q16_16) Q16_16
q16_clamp()
fn q16_clamp(value: Q16_16, low: Q16_16, high: Q16_16) Q16_16
q16fromi32()
fn q16_from_i32(value: i32) Q16_16
q16_mul()
fn q16_mul(a: Q16_16, b: Q16_16) Q16_16
q16_sub()
fn q16_sub(a: Q16_16, b: Q16_16) Q16_16
q16tof64()
fn q16_to_f64(value: Q16_16) f64
q8_add()
fn q8_add(a: Q8_8, b: Q8_8) Q8_8
q8fromi32()
fn q8_from_i32(value: i32) Q8_8
q8_mul()
fn q8_mul(a: Q8_8, b: Q8_8) Q8_8
q8_sub()
fn q8_sub(a: Q8_8, b: Q8_8) Q8_8
Structs
| Struct | Fields |
|---|---|
| Q16_16 | raw: i32 |
| Q8_8 | raw: i32 |