Skip to content

Commit 7107daf

Browse files
committed
fix windows
1 parent c468a2a commit 7107daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn dl_sum(a: f64, b: f64) -> DoubleLength {
2727
}
2828

2929
/// Algorithm 3.5. Error-free transformation of a product using FMA
30-
#[cfg(feature = "mul_add")]
30+
#[cfg(any(feature = "mul_add", target_os = "windows"))]
3131
#[inline]
3232
fn dl_mul(x: f64, y: f64) -> DoubleLength {
3333
let z = x * y;
@@ -36,7 +36,7 @@ fn dl_mul(x: f64, y: f64) -> DoubleLength {
3636
}
3737

3838
/// Dekker's algorithm for error-free product without FMA
39-
#[cfg(not(feature = "mul_add"))]
39+
#[cfg(not(any(feature = "mul_add", target_os = "windows")))]
4040
#[inline]
4141
fn dl_mul(x: f64, y: f64) -> DoubleLength {
4242
// Dekker (5.5) and (5.6) - split

0 commit comments

Comments
 (0)