Pow functions only in std not in core


I am developing currently for the stm32f303 and therefore only have core and no std available.
For an algorithm I need the i64::powf function (or intrinsics::powf64). But this function is only available in std. The intrinsic is available in core but not on stable.
What is the reason for this? As far as I can see with my limited knowledge the pow functions are provided by the llvm backend anyway so should be available in core anyways?


I believe the issue is those intrinsics get lowered to libm calls, and core isn’t supposed to have any C dependencies.


For float variant you could try Rust port of libm:

1 Like