Skip to content

Commit 9470e5d

Browse files
cpetersobrson
authored andcommitted
core: Export f32::ge(), f64::ge(), and float::ge()
1 parent af1a66a commit 9470e5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/libcore/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import cmath::c_float::*;
66
import cmath::c_float_targ_consts::*;
77

8-
export add, sub, mul, div, rem, lt, le, gt, eq, ne;
8+
export add, sub, mul, div, rem, lt, le, eq, ne, ge, gt;
99
export is_positive, is_negative, is_nonpositive, is_nonnegative;
1010
export is_zero, is_infinite, is_finite;
1111
export NaN, is_NaN, infinity, neg_infinity;

src/libcore/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import cmath::c_double_targ_consts::*;
88
// Even though this module exports everything defined in it,
99
// because it contains re-exports, we also have to explicitly
1010
// export locally defined things. That's a bit annoying.
11-
export add, sub, mul, div, rem, lt, le, gt, eq, ne;
11+
export add, sub, mul, div, rem, lt, le, eq, ne, ge, gt;
1212
export is_positive, is_negative, is_nonpositive, is_nonnegative;
1313
export is_zero, is_infinite, is_finite;
1414
export NaN, is_NaN, infinity, neg_infinity;

src/libcore/float.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// because it contains re-exports, we also have to explicitly
55
// export locally defined things. That's a bit annoying.
66
export to_str_common, to_str_exact, to_str, from_str;
7-
export add, sub, mul, div, rem, lt, le, gt, eq, ne;
7+
export add, sub, mul, div, rem, lt, le, eq, ne, ge, gt;
88
export is_positive, is_negative, is_nonpositive, is_nonnegative;
99
export is_zero, is_infinite, is_finite;
1010
export NaN, is_NaN, infinity, neg_infinity;
@@ -28,7 +28,7 @@ export j0, j1, jn, y0, y1, yn;
2828

2929
import m_float = f64;
3030

31-
import f64::{add, sub, mul, div, rem, lt, le, gt, eq, ne};
31+
import f64::{add, sub, mul, div, rem, lt, le, eq, ne, ge, gt};
3232
import f64::logarithm;
3333
import f64::{acos, asin, atan2, cbrt, ceil, copysign, cosh, floor};
3434
import f64::{erf, erfc, exp, expm1, exp2, abs_sub};

0 commit comments

Comments
 (0)