X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=fp16_test.cpp;h=7a9d56612b53dbe942d2b6d1b8a079b5cdfa6c3c;hp=d95e5c6b6d01813dfa367169c9ee15f35d6bc41a;hb=c72cd5445d110b4519ac6af2f747832e38c3b829;hpb=35ab97543afb74f72dd1d4c0d7d3206efe867a5e 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.