Skip to content

Commit 80291c3

Browse files
bors[bot]rrbutanijaparic
committed
126: implement pow r=japaric a=japaric cargo fmt version of rust-lang#125 closes rust-lang#125 closes rust-lang#124 Co-authored-by: Rahul Butani <[email protected]> Co-authored-by: Jorge Aparicio <[email protected]>
2 parents e979c7d + ea9f617 commit 80291c3

File tree

4 files changed

+412
-4
lines changed

4 files changed

+412
-4
lines changed

src/lib.rs

-2
Original file line numberDiff line numberDiff 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)

src/math/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ mod log1pf;
4949
mod log2;
5050
mod log2f;
5151
mod logf;
52+
mod pow;
5253
mod powf;
5354
mod round;
5455
mod roundf;
@@ -110,6 +111,7 @@ pub use self::log1pf::log1pf;
110111
pub use self::log2::log2;
111112
pub use self::log2f::log2f;
112113
pub use self::logf::logf;
114+
pub use self::pow::pow;
113115
pub use self::powf::powf;
114116
pub use self::round::round;
115117
pub use self::roundf::roundf;
@@ -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]
172173
fn with_set_high_word(f: f64, hi: u32) -> f64 {
173174
let mut tmp = f.to_bits();

0 commit comments

Comments
 (0)