]> git.sesse.net Git - movit/commitdiff
Fix fp16_test compilation with f16c-enabled compilation flags.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 1 Aug 2017 15:41:17 +0000 (17:41 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 1 Aug 2017 15:41:17 +0000 (17:41 +0200)
fp16_test.cpp

index 058c91281603fd0b2c0fa2ed8ed4200bc22dab28..d95e5c6b6d01813dfa367169c9ee15f35d6bc41a 100644 (file)
@@ -45,6 +45,10 @@ union fp64 {
        double f;
        unsigned long long ll;
 };
        double f;
        unsigned long long ll;
 };
+union fp32 {
+       float f;
+       unsigned int u;
+};
 
 TEST(FP16Test, NaN) {
        // Ignore the sign bit.
 
 TEST(FP16Test, NaN) {
        // Ignore the sign bit.