Use deFloatIsNaN, not isnan.
authorDan Albert <danalbert@google.com>
Wed, 8 Feb 2017 19:37:30 +0000 (11:37 -0800)
committerDan Albert <danalbert@google.com>
Thu, 9 Feb 2017 18:59:15 +0000 (10:59 -0800)
Discovered because this file includes cmath rather than math.h, so
some header cleanup made isnan go away (it should have been
std::isnan).

Test: mma
Bug: http://b/34724220
Change-Id: Idb6b26a90307f510ad1a118b694a34e32ce7507c

external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp

index 3887f80..c610d0c 100644 (file)
@@ -2531,7 +2531,7 @@ bool compareNan (const std::vector<BufferSp>&, const vector<AllocationSp>& outpu
 
        for (size_t idx = 0; idx < expectedOutput->getNumBytes() / sizeof(float); ++idx)
        {
-               if (!isnan(output_as_float[idx]))
+               if (!deFloatIsNaN(output_as_float[idx]))
                {
                        return false;
                }