Line 0
Link Here
|
|
|
1 |
From: Steinar H. Gunderson <sgunderson@bigfoot.com> |
2 |
Date: Tue, 1 Aug 2017 15:41:17 +0000 (+0200) |
3 |
Subject: Fix fp16_test compilation with f16c-enabled compilation flags. |
4 |
X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=f680714c0378a80e1638824c70c5ec62d6ade8ee;hp=8e9f58fec54a4c879035b214fd7411f6ff7b3a32 |
5 |
|
6 |
Fix fp16_test compilation with f16c-enabled compilation flags. |
7 |
--- |
8 |
|
9 |
diff --git a/fp16_test.cpp b/fp16_test.cpp |
10 |
index 058c912..d95e5c6 100644 |
11 |
--- a/fp16_test.cpp |
12 |
+++ b/fp16_test.cpp |
13 |
@@ -45,6 +45,10 @@ union fp64 { |
14 |
double f; |
15 |
unsigned long long ll; |
16 |
}; |
17 |
+union fp32 { |
18 |
+ float f; |
19 |
+ unsigned int u; |
20 |
+}; |
21 |
|
22 |
TEST(FP16Test, NaN) { |
23 |
// Ignore the sign bit. |