Expand description
ROM functions using single-precision arithmetic (i.e. ‘f32’ in Rust terms)
Modules§
- fadd
- Additional access for the
faddROM function. - fatan2
- Additional access for the
fatan2ROM function. - fcmp
- Additional access for the
fcmpROM function. - fcos
- Additional access for the
fcosROM function. - fdiv
- Additional access for the
fdivROM function. - fexp
- Additional access for the
fexpROM function. - fix64_
to_ float - Additional access for the
fix64_to_floatROM function. - fix_
to_ float - Additional access for the
fix_to_floatROM function. - fln
- Additional access for the
flnROM function. - float_
to_ double - Additional access for the
float_to_doubleROM function. - float_
to_ fix - Additional access for the
float_to_fixROM function. - float_
to_ fix64 - Additional access for the
float_to_fix64ROM function. - float_
to_ int - Additional access for the
float_to_intROM function. - float_
to_ int64 - Additional access for the
float_to_int64ROM function. - float_
to_ ufix - Additional access for the
float_to_ufixROM function. - float_
to_ ufix64 - Additional access for the
float_to_ufix64ROM function. - float_
to_ uint - Additional access for the
float_to_uintROM function. - float_
to_ uint64 - Additional access for the
float_to_uint64ROM function. - fmul
- Additional access for the
fmulROM function. - fsin
- Additional access for the
fsinROM function. - fsqrt
- Additional access for the
fsqrtROM function. - fsub
- Additional access for the
fsubROM function. - ftan
- Additional access for the
ftanROM function. - int64_
to_ float - Additional access for the
int64_to_floatROM function. - int_
to_ float - Additional access for the
int_to_floatROM function. - ufix64_
to_ float - Additional access for the
ufix64_to_floatROM function. - ufix_
to_ float - Additional access for the
ufix_to_floatROM function. - uint64_
to_ float - Additional access for the
uint64_to_floatROM function. - uint_
to_ float - Additional access for the
uint_to_floatROM function.
Functions§
- fadd
- Calculates
a + b - fatan2
- Computes the arc tangent of
y/xusing the signs of arguments to determine the correct quadrant - fcmp
- Compares two floating point numbers, returning: • 0 if a == b • -1 if a < b • 1 if a > b
- fcos
- Calculates the cosine of
angle. The value ofangleis in radians, and must be in the range-1024to1024 - fdiv
- Calculates
a / b - fexp
- Calculates the exponential value of
v, i.e.e ** v - fix64_
to_ float - Converts a signed fixed point 64-bit integer
representation to the nearest f32 value, rounding to even on tie.
nspecifies the position of the binary point in fixed point, sof = nearest(v/(2^n)) - fix_
to_ float - Converts a signed fixed point integer
representation to the nearest f32 value, rounding to even on tie.
nspecifies the position of the binary point in fixed point, sof = nearest(v/(2^n)) - fln
- Calculates the natural logarithm of
v. Ifv <= 0return -Infinity - float_
to_ double - Converts an f32 to an f64.
- float_
to_ fix - Converts an f32 to an signed fixed point
integer representation where n specifies the position of the binary
point in the resulting fixed point representation, e.g.
f(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the range0x00000000to0xFFFFFFFF - float_
to_ fix64 - Converts an f32 to a signed fixed point
64-bit integer representation where n specifies the position of the
binary point in the resulting fixed point representation - e.g.
f(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the range-0x8000000000000000to0x7FFFFFFFFFFFFFFF - float_
to_ int - Converts an f32 to a signed integer,
rounding towards -Infinity, and clamping the result to lie within the
range
-0x80000000to0x7FFFFFFF - float_
to_ int64 - Convert an f32 to a signed 64-bit integer, rounding towards -Infinity,
and clamping the result to lie within the range
-0x8000000000000000to0x7FFFFFFFFFFFFFFF - float_
to_ ufix - Converts an f32 to an unsigned fixed point
integer representation where n specifies the position of the binary
point in the resulting fixed point representation, e.g.
f(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the range0x00000000to0xFFFFFFFF - float_
to_ ufix64 - Converts an f32 to an unsigned fixed point
64-bit integer representation where n specifies the position of the
binary point in the resulting fixed point representation, e.g.
f(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and clamps the resulting integer to lie within the range0x0000000000000000to0xFFFFFFFFFFFFFFFF - float_
to_ uint - Converts an f32 to an unsigned integer,
rounding towards -Infinity, and clamping the result to lie within the
range
0x00000000to0xFFFFFFFF - float_
to_ uint64 - Converts an f32 to an unsigned 64-bit
integer, rounding towards -Infinity, and clamping the result to lie
within the range
0x0000000000000000to0xFFFFFFFFFFFFFFFF - fmul
- Calculates
a * b - fsin
- Calculates the sine of
angle. The value ofangleis in radians, and must be in the range-1024to1024 - fsqrt
- Calculates
sqrt(v)(or return -Infinity if v is negative) - fsub
- Calculates
a - b - ftan
- Calculates the tangent of
angle. The value ofangleis in radians, and must be in the range-1024to1024 - int64_
to_ float - Converts a signed 64-bit integer to the nearest f32 value, rounding to even on tie
- int_
to_ float - Converts a signed integer to the nearest f32 value, rounding to even on tie
- ufix64_
to_ float - Converts an unsigned fixed point 64-bit
integer representation to the nearest f32 value, rounding to even on
tie.
nspecifies the position of the binary point in fixed point, sof = nearest(v/(2^n)) - ufix_
to_ float - Converts an unsigned fixed point integer
representation to the nearest f32 value, rounding to even on tie.
nspecifies the position of the binary point in fixed point, sof = nearest(v/(2^n)) - uint64_
to_ float - Converts an unsigned 64-bit integer to the nearest f32 value, rounding to even on tie
- uint_
to_ float - Converts an unsigned integer to the nearest f32 value, rounding to even on tie