File tree 4 files changed +412
-4
lines changed
4 files changed +412
-4
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ pub trait F64Ext: private::Sealed + Sized {
343
343
// NOTE depends on unstable intrinsics::powif64
344
344
// fn powi(self, n: i32) -> Self;
345
345
346
- #[ cfg( todo) ]
347
346
fn powf ( self , n : Self ) -> Self ;
348
347
349
348
fn sqrt ( self ) -> Self ;
@@ -463,7 +462,6 @@ impl F64Ext for f64 {
463
462
}
464
463
}
465
464
466
- #[ cfg( todo) ]
467
465
#[ inline]
468
466
fn powf ( self , n : Self ) -> Self {
469
467
pow ( self , n)
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ mod log1pf;
49
49
mod log2;
50
50
mod log2f;
51
51
mod logf;
52
+ mod pow;
52
53
mod powf;
53
54
mod round;
54
55
mod roundf;
@@ -110,6 +111,7 @@ pub use self::log1pf::log1pf;
110
111
pub use self :: log2:: log2;
111
112
pub use self :: log2f:: log2f;
112
113
pub use self :: logf:: logf;
114
+ pub use self :: pow:: pow;
113
115
pub use self :: powf:: powf;
114
116
pub use self :: round:: round;
115
117
pub use self :: roundf:: roundf;
@@ -167,7 +169,6 @@ fn get_low_word(x: f64) -> u32 {
167
169
x. to_bits ( ) as u32
168
170
}
169
171
170
- #[ allow( dead_code) ]
171
172
#[ inline]
172
173
fn with_set_high_word ( f : f64 , hi : u32 ) -> f64 {
173
174
let mut tmp = f. to_bits ( ) ;
You can’t perform that action at this time.
0 commit comments