]> git.sesse.net Git - movit/blobdiff - fp16_test.cpp
Fix fp16_test compilation _without_ f16c-enabled compilation flags.
[movit] / fp16_test.cpp
index d95e5c6b6d01813dfa367169c9ee15f35d6bc41a..7a9d56612b53dbe942d2b6d1b8a079b5cdfa6c3c 100644 (file)
@@ -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.