File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/libcore/num/flt2dec/strategy Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pub struct Fp {
34
34
35
35
impl Fp {
36
36
/// Returns a correctly rounded product of itself and `other`.
37
- fn mul ( & self , other : & Fp ) -> Fp {
37
+ pub fn mul ( & self , other : & Fp ) -> Fp {
38
38
const MASK : u64 = 0xffffffff ;
39
39
let a = self . f >> 32 ;
40
40
let b = self . f & MASK ;
@@ -51,7 +51,7 @@ impl Fp {
51
51
}
52
52
53
53
/// Normalizes itself so that the resulting mantissa is at least `2^63`.
54
- fn normalize ( & self ) -> Fp {
54
+ pub fn normalize ( & self ) -> Fp {
55
55
let mut f = self . f ;
56
56
let mut e = self . e ;
57
57
if f >> ( 64 - 32 ) == 0 { f <<= 32 ; e -= 32 ; }
@@ -66,7 +66,7 @@ impl Fp {
66
66
67
67
/// Normalizes itself to have the shared exponent.
68
68
/// It can only decrease the exponent (and thus increase the mantissa).
69
- fn normalize_to ( & self , e : i16 ) -> Fp {
69
+ pub fn normalize_to ( & self , e : i16 ) -> Fp {
70
70
let edelta = self . e - e;
71
71
assert ! ( edelta >= 0 ) ;
72
72
let edelta = edelta as usize ;
You can’t perform that action at this time.
0 commit comments