This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ pub trait F64Ext: private::Sealed + Sized {
343343 // NOTE depends on unstable intrinsics::powif64
344344 // fn powi(self, n: i32) -> Self;
345345
346- #[ cfg( todo) ]
347346 fn powf ( self , n : Self ) -> Self ;
348347
349348 fn sqrt ( self ) -> Self ;
@@ -463,7 +462,6 @@ impl F64Ext for f64 {
463462 }
464463 }
465464
466- #[ cfg( todo) ]
467465 #[ inline]
468466 fn powf ( self , n : Self ) -> Self {
469467 pow ( self , n)
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ mod log2;
5050mod log2f;
5151mod logf;
5252mod powf;
53+ mod pow;
5354mod round;
5455mod roundf;
5556mod scalbn;
@@ -111,6 +112,7 @@ pub use self::log2::log2;
111112pub use self :: log2f:: log2f;
112113pub use self :: logf:: logf;
113114pub use self :: powf:: powf;
115+ pub use self :: pow:: pow;
114116pub use self :: round:: round;
115117pub use self :: roundf:: roundf;
116118pub use self :: scalbn:: scalbn;
@@ -167,7 +169,6 @@ fn get_low_word(x: f64) -> u32 {
167169 x. to_bits ( ) as u32
168170}
169171
170- #[ allow( dead_code) ]
171172#[ inline]
172173fn with_set_high_word ( f : f64 , hi : u32 ) -> f64 {
173174 let mut tmp = f. to_bits ( ) ;
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ f64f64_f64! {
774774 fdim,
775775 fmod,
776776 hypot,
777- // pow,
777+ pow,
778778}
779779
780780// With signature `fn(f64, f64, f64) -> f64`
You can’t perform that action at this time.
0 commit comments