mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
ed7e576d9c
The patch adds a `pow` function for types implementing `One`, `Mul` and `Clone` trait. The patch also renames f32 and f64 pow into powf in order to still have a way to easily have float powers. It uses llvms intrinsics. The pow implementation for all num types uses the exponentiation by square. Fixes bug #11499