@@ -4,7 +4,7 @@ Module: float
4
4
5
5
// FIXME find out why these have to be exported explicitly
6
6
7
- export to_str_common, to_str_exact, to_str, from_str, min , max ;
7
+ export to_str_common, to_str_exact, to_str, from_str;
8
8
export add, sub, mul, div, rem, lt, le, gt, eq, eq, ne;
9
9
export is_positive, is_negative, is_nonpositive, is_nonnegative;
10
10
export is_zero, is_infinite, is_finite;
@@ -16,6 +16,7 @@ export erf, erfc, exp, expm1, exp2, abs, abs_sub;
16
16
export mul_add, fmax, fmin, nextafter, frexp, hypot, ldexp;
17
17
export lgamma, ln, log_radix, ln1p, log10, log2, ilog_radix;
18
18
export modf, pow, round, sin, sinh, sqrt, tan, tanh, tgamma, trunc;
19
+ export signbit;
19
20
20
21
// export when m_float == c_double
21
22
@@ -280,20 +281,6 @@ fn pow_uint_to_uint_as_float(x: uint, pow: uint) -> float {
280
281
}
281
282
282
283
283
- /*
284
- Function: min
285
-
286
- Returns the minimum of two values
287
- */
288
- pure fn min < copy T > ( x : T , y : T ) -> T { x < y ? x : y }
289
-
290
- /*
291
- Function: max
292
-
293
- Returns the maximum of two values
294
- */
295
- pure fn max < copy T > ( x : T , y : T ) -> T { x < y ? y : x }
296
-
297
284
//
298
285
// Local Variables:
299
286
// mode: rust
0 commit comments