| 1 | module math |
| 2 | |
| 3 | fn C.pow(x f64, y f64) f64 |
| 4 | |
| 5 | fn C.powf(x f32, y f32) f32 |
| 6 | |
| 7 | // pow returns the base x, raised to the provided power y. (float64) |
| 8 | @[inline] |
| 9 | pub fn pow(x f64, y f64) f64 { |
| 10 | return C.pow(x, y) |
| 11 | } |
| 12 | |
| 13 | // powf returns the base a, raised to the provided power b. (float32) |
| 14 | @[inline] |
| 15 | pub fn powf(a f32, b f32) f32 { |
| 16 | return C.powf(a, b) |
| 17 | } |
| 18 |