Merge pull request #3661 from TheBlueMatt/2025-03-right-libm

Use proper libm power method for `f64`s
This commit is contained in:
Matt Corallo 2025-03-12 15:22:55 +00:00 committed by GitHub
commit f10b8542a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1817,7 +1817,7 @@ fn powf64(n: f64, exp: f64) -> f64 {
}
#[cfg(not(feature = "std"))]
fn powf64(n: f64, exp: f64) -> f64 {
libm::powf(n as f32, exp as f32) as f64
libm::pow(n, exp)
}
mod bucketed_history {