Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 24768f4

Browse files
committed
Enable tests and expose
1 parent 0a09954 commit 24768f4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ mod log2;
5050
mod log2f;
5151
mod logf;
5252
mod powf;
53+
mod pow;
5354
mod round;
5455
mod roundf;
5556
mod scalbn;
@@ -111,6 +112,7 @@ pub use self::log2::log2;
111112
pub use self::log2f::log2f;
112113
pub use self::logf::logf;
113114
pub use self::powf::powf;
115+
pub use self::pow::pow;
114116
pub use self::round::round;
115117
pub use self::roundf::roundf;
116118
pub 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]
172173
fn with_set_high_word(f: f64, hi: u32) -> f64 {
173174
let mut tmp = f.to_bits();

test-generator/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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`

0 commit comments

Comments
 (0)