|
Lines 1-16
Link Here
|
| 1 |
--- src/libcore/f32.rs.orig 2012-04-01 10:40:20.915606509 +0800 |
1 |
--- src/libcore/f32.rs.orig 2012-07-16 17:14:25.444144084 +0800 |
| 2 |
+++ src/libcore/f32.rs 2012-04-01 10:43:43.847606825 +0800 |
2 |
+++ src/libcore/f32.rs 2012-07-16 17:15:29.799514797 +0800 |
| 3 |
@@ -5,6 +5,8 @@ |
3 |
@@ -5,6 +5,8 @@ |
| 4 |
import cmath::c_float::*; |
4 |
import cmath::c_float::*; |
| 5 |
import cmath::c_float_targ_consts::*; |
5 |
import cmath::c_float_targ_consts::*; |
| 6 |
|
6 |
|
| 7 |
+import cmath::c_double; |
7 |
+import cmath::c_double; |
| 8 |
+ |
8 |
+ |
| 9 |
// FIXME find out why these have to be exported explicitly |
9 |
export add, sub, mul, div, rem, lt, le, gt, eq, ne; |
| 10 |
|
10 |
export is_positive, is_negative, is_nonpositive, is_nonnegative; |
| 11 |
export add, sub, mul, div, rem, lt, le, gt, eq, eq, ne; |
11 |
export is_zero, is_infinite, is_finite; |
| 12 |
@@ -176,6 +178,10 @@ |
12 |
@@ -179,6 +181,10 @@ |
| 13 |
ret ln(n) / consts::ln_2; |
13 |
fn from_int(n: int) -> f32 { ret n as f32; } |
| 14 |
} |
14 |
} |
| 15 |
|
15 |
|
| 16 |
+pure fn tgamma(n: f32) -> f32 { |
16 |
+pure fn tgamma(n: f32) -> f32 { |