diff options
| author | Stefan Plantikow <stefan.plantikow@googlemail.com> | 2011-12-08 19:30:57 +0100 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-14 14:54:16 -0800 |
| commit | 6d0901cb4da43d9316762445f764904a6b4fe1cf (patch) | |
| tree | 0f6a3572f698be0fe58d030ad0b54f5d56622c61 /src/libstd/cmath.rs | |
| parent | 6cdb69cccbb9a86487fc0fd5d10edb01ce9479a4 (diff) | |
| download | rust-6d0901cb4da43d9316762445f764904a6b4fe1cf.tar.gz rust-6d0901cb4da43d9316762445f764904a6b4fe1cf.zip | |
std: export math_f* as math::f* submods and use tailcalls in std::math
Diffstat (limited to 'src/libstd/cmath.rs')
| -rw-r--r-- | src/libstd/cmath.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/cmath.rs b/src/libstd/cmath.rs index 69ecbac3e91..1e4ee49763e 100644 --- a/src/libstd/cmath.rs +++ b/src/libstd/cmath.rs @@ -23,7 +23,7 @@ native mod f64 { #[link_name="log1p"] pure fn ln1p(n: f64) -> f64; pure fn log10(n: f64) -> f64; pure fn log2(n: f64) -> f64; - pure fn modf(n: f64, &iptr: f64) -> f64; + pure fn modf(n: f64, iptr: *f64) -> f64; pure fn pow(n: f64, e: f64) -> f64; pure fn rint(n: f64) -> f64; pure fn round(n: f64) -> f64; @@ -58,7 +58,7 @@ native mod f32 { #[link_name="log1p"] pure fn ln1p(n: f64) -> f64; #[link_name="log2f"] pure fn log2(n: f32) -> f32; #[link_name="log10f"] pure fn log10(n: f32) -> f32; - #[link_name="modff"] pure fn modf(n: f32, &iptr: f32) -> f32; + #[link_name="modff"] pure fn modf(n: f32, iptr: *f32) -> f32; #[link_name="powf"] pure fn pow(n: f32, e: f32) -> f32; #[link_name="rintf"] pure fn rint(n: f32) -> f32; #[link_name="roundf"] pure fn round(n: f32) -> f32; |
