From 7f1fabb816ee5010be83abf5da58e92429609547 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 3 Aug 2017 15:36:30 +0200 Subject: [PATCH 1/1] Fix fp16_test compilation _without_ f16c-enabled compilation flags. Reported by Arthur Huillet. --- fp16_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fp16_test.cpp b/fp16_test.cpp index d95e5c6..7a9d566 100644 --- a/fp16_test.cpp +++ b/fp16_test.cpp @@ -45,10 +45,13 @@ union fp64 { double f; unsigned long long ll; }; + +#ifdef __F16C__ union fp32 { float f; unsigned int u; }; +#endif TEST(FP16Test, NaN) { // Ignore the sign bit. -- 2.39.2