Skip to content

Commit 6b220e5

Browse files
committed
Disable portable-simd sqrt test on MinGW
1 parent 4976aa5 commit 6b220e5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 94d120099daad021de3da9249a9ea655592f8787 Mon Sep 17 00:00:00 2001
2+
From: bjorn3 <17426603+bjorn3@users.noreply.github.com>
3+
Date: Fri, 8 Mar 2024 18:26:17 +0000
4+
Subject: [PATCH] Disable sqrt test for MinGW
5+
6+
---
7+
crates/std_float/tests/float.rs | 4 +++-
8+
1 file changed, 3 insertions(+), 1 deletion(-)
9+
10+
diff --git a/crates/std_float/tests/float.rs b/crates/std_float/tests/float.rs
11+
index c66c968..9a13dd0 100644
12+
--- a/crates/std_float/tests/float.rs
13+
+++ b/crates/std_float/tests/float.rs
14+
@@ -53,7 +53,9 @@ macro_rules! impl_tests {
15+
mod $scalar {
16+
use std_float::StdFloat;
17+
18+
- unary_test! { $scalar, sqrt, sin, cos, exp, exp2, ln, log2, log10, ceil, floor, round, trunc }
19+
+ unary_test! { $scalar, sin, cos, exp, exp2, ln, log2, log10, ceil, floor, round, trunc }
20+
+ #[cfg(not(all(target_os = "windows", target_env = "gnu")))] // Rounding error with MinGW
21+
+ unary_test! { $scalar, sqrt }
22+
binary_test! { $scalar, log }
23+
ternary_test! { $scalar, mul_add }
24+
25+
--
26+
2.34.1
27+

0 commit comments

Comments
 (0)