[libc][NFC] Use ASSERT_FP_EQ to comapre NaN values in tests.
authorSiva Chandra Reddy <sivachandra@google.com>
Fri, 18 Dec 2020 06:55:18 +0000 (22:55 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Fri, 18 Dec 2020 07:16:26 +0000 (23:16 -0800)
commitd599ed49b355f1481bf8b22774e1a902352c9766
tree8cfaa647123960c102166378bfbcee90ba91dc6a
parentfdd6ed8e9341f5161673e962cbd36e1f4c3968f5
[libc][NFC] Use ASSERT_FP_EQ to comapre NaN values in tests.

This is a continuation of the previous CL which did a similar change in
other tests. To elaborate a little about why we need this - under C++
compilation with headers not from LLVM libc, libraries like libc++ and
libstdc++ provide their own math.h which undefine macros like `isnan`
and provide the overloaded C++ isnan functions which return a boolean
value instead of an integer value returned by the isnan macro.
libc/test/src/math/FDimTest.h
libc/test/src/math/RemQuoTest.h
libc/test/src/math/fmax_test.cpp
libc/test/src/math/fmaxf_test.cpp
libc/test/src/math/fmaxl_test.cpp
libc/test/src/math/fmin_test.cpp
libc/test/src/math/fminf_test.cpp
libc/test/src/math/fminl_test.cpp