Expand description
A shim impelementation of the libm crate, binding directly to the in-tree libc’s versions of these functions.
Functions§
- cbrt
- Cube root
- exp
- Returns ‘e’ raised to the power
x. - fabs
- Returns the absolute value (i.e. magnitude) of the argument x
- frexpf
- Decomposes given floating point value x into a normalized fraction and an integral power of two.
- ldexp
- Multiplies an f64 arg by the number 2 raised to the exp power.
- ldexpf
- Multiplies an f32 arg by the number 2 raised to the exp power.
- log
- Returns the base-‘e’ logarithm of the provided number.
- modf
- Returns the fractional and integral parts of an f64. The return ordering
(fractional_part, integral_part)is based on the libm crate from crates.io. - sqrt
- Returns the square root of the provided number.