Macrosยง
- impl_
float_ ๐host_ operations - impl_
ieee_ ๐pi
Enumsยง
Traitsยง
- Host
Float Operation - IeeeExt
- Extend functionality of
rustc_apfloatsoftfloats for IEEE float types. - ToHost
- Convert a softfloat type to its corresponding hostfloat type.
- ToSoft
- Convert a hostfloat type to its corresponding softfloat type.
Functionsยง
- apply_
random_ ๐float_ error - Disturbes a floating-point result by a relative error in the range (-2^scale, 2^scale).
- apply_
random_ ๐float_ error_ to_ imm - Applies an error of
[-N, +N]ULP to the given value. Will fail ifvalis not a floating point number. - apply_
random_ ๐float_ error_ ulp - Applies an error of
[-N, +N]ULP to the given value. - clamp_
float_ ๐value - Given a floating-point operation and a floating-point value, clamps the result to the output range of the given operation according to the C standard, if any.
- fixed_
float_ ๐value - For the intrinsics:
- fixed_
powi_ ๐value - Returns
Some(output)ifpowi(calledpownin C) results in a fixed value specified in the C standard (specifically, C23 annex F.10.4.6) when doingbase^exp. Otherwise, returnsNone. - host_
unary_ float_ op - sqrt ๐
- sqrt_op
- strip_
float_ ๐suffix - Remove
f16/f32/f64/f128suffix, if any.