diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2014-01-12 21:02:59 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2014-01-17 15:41:26 +0100 |
| commit | ed7e576d9cf807169b17b5a4c572e874e38681cf (patch) | |
| tree | 02b3ccb929e3e47154f754f3a79508fba04bface /src/rustllvm/RustWrapper.cpp | |
| parent | 5fdc81262a5d44f10e335384b5d69b938d6d729c (diff) | |
| download | rust-ed7e576d9cf807169b17b5a4c572e874e38681cf.tar.gz rust-ed7e576d9cf807169b17b5a4c572e874e38681cf.zip | |
Add a generic power function
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
