/external/llvm-project/libc/test/src/math/ |
D | sqrtl_test.cpp | 26 ASSERT_FP_EQ(nan, __llvm_libc::sqrtl(nan)); in TEST() 27 ASSERT_FP_EQ(inf, __llvm_libc::sqrtl(inf)); in TEST() 28 ASSERT_FP_EQ(nan, __llvm_libc::sqrtl(negInf)); in TEST() 29 ASSERT_FP_EQ(0.0L, __llvm_libc::sqrtl(0.0L)); in TEST() 30 ASSERT_FP_EQ(-0.0L, __llvm_libc::sqrtl(-0.0L)); in TEST() 31 ASSERT_FP_EQ(nan, __llvm_libc::sqrtl(-1.0L)); in TEST() 32 ASSERT_FP_EQ(1.0L, __llvm_libc::sqrtl(1.0L)); in TEST() 33 ASSERT_FP_EQ(2.0L, __llvm_libc::sqrtl(4.0L)); in TEST() 34 ASSERT_FP_EQ(3.0L, __llvm_libc::sqrtl(9.0L)); in TEST()
|
D | sqrtf_test.cpp | 26 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(nan)); in TEST() 27 ASSERT_FP_EQ(inf, __llvm_libc::sqrtf(inf)); in TEST() 28 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(negInf)); in TEST() 29 ASSERT_FP_EQ(0.0f, __llvm_libc::sqrtf(0.0f)); in TEST() 30 ASSERT_FP_EQ(-0.0f, __llvm_libc::sqrtf(-0.0f)); in TEST() 31 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(-1.0f)); in TEST() 32 ASSERT_FP_EQ(1.0f, __llvm_libc::sqrtf(1.0f)); in TEST() 33 ASSERT_FP_EQ(2.0f, __llvm_libc::sqrtf(4.0f)); in TEST() 34 ASSERT_FP_EQ(3.0f, __llvm_libc::sqrtf(9.0f)); in TEST()
|
D | sqrt_test.cpp | 26 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(nan)); in TEST() 27 ASSERT_FP_EQ(inf, __llvm_libc::sqrt(inf)); in TEST() 28 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(negInf)); in TEST() 29 ASSERT_FP_EQ(0.0, __llvm_libc::sqrt(0.0)); in TEST() 30 ASSERT_FP_EQ(-0.0, __llvm_libc::sqrt(-0.0)); in TEST() 31 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(-1.0)); in TEST() 32 ASSERT_FP_EQ(1.0, __llvm_libc::sqrt(1.0)); in TEST() 33 ASSERT_FP_EQ(2.0, __llvm_libc::sqrt(4.0)); in TEST() 34 ASSERT_FP_EQ(3.0, __llvm_libc::sqrt(9.0)); in TEST()
|
D | LdExpTest.h | 43 ASSERT_FP_EQ(zero, func(zero, exp)); in testSpecialNumbers() 44 ASSERT_FP_EQ(negZero, func(negZero, exp)); in testSpecialNumbers() 45 ASSERT_FP_EQ(inf, func(inf, exp)); in testSpecialNumbers() 46 ASSERT_FP_EQ(negInf, func(negInf, exp)); in testSpecialNumbers() 56 ASSERT_FP_EQ(T(val << exp), func(T(val), exp)); in testPowersOfTwo() 57 ASSERT_FP_EQ(T(-1 * (val << exp)), func(T(-val), exp)); in testPowersOfTwo() 65 ASSERT_FP_EQ(inf, func(T(x), exp)); in testOverflow() 66 ASSERT_FP_EQ(negInf, func(-T(x), exp)); in testOverflow() 78 ASSERT_FP_EQ(func(x, -exp), x > 0 ? zero : negZero); in testUnderflowToZeroOnNormal() 90 ASSERT_FP_EQ(func(x, -exp), x > 0 ? zero : negZero); in testUnderflowToZeroOnSubnormal() [all …]
|
D | copysignl_test.cpp | 40 ASSERT_FP_EQ(res1, -x); in TEST() 43 ASSERT_FP_EQ(res2, x); in TEST()
|
D | copysign_test.cpp | 40 ASSERT_FP_EQ(res1, -x); in TEST() 43 ASSERT_FP_EQ(res2, x); in TEST()
|
D | copysignf_test.cpp | 40 ASSERT_FP_EQ(res1, -x); in TEST() 43 ASSERT_FP_EQ(res2, x); in TEST()
|
D | fminl_test.cpp | 67 ASSERT_FP_EQ(x, __llvm_libc::fminl(x, y)); in TEST() 69 ASSERT_FP_EQ(y, __llvm_libc::fminl(x, y)); in TEST()
|
D | fmaxf_test.cpp | 67 ASSERT_FP_EQ(x, __llvm_libc::fmaxf(x, y)); in TEST() 69 ASSERT_FP_EQ(y, __llvm_libc::fmaxf(x, y)); in TEST()
|
D | fminf_test.cpp | 67 ASSERT_FP_EQ(x, __llvm_libc::fminf(x, y)); in TEST() 69 ASSERT_FP_EQ(y, __llvm_libc::fminf(x, y)); in TEST()
|
D | fmin_test.cpp | 67 ASSERT_FP_EQ(x, __llvm_libc::fmin(x, y)); in TEST() 69 ASSERT_FP_EQ(y, __llvm_libc::fmin(x, y)); in TEST()
|
D | fmaxl_test.cpp | 67 ASSERT_FP_EQ(x, __llvm_libc::fmaxl(x, y)); in TEST() 69 ASSERT_FP_EQ(y, __llvm_libc::fmaxl(x, y)); in TEST()
|
/external/llvm-project/libc/utils/FPUtil/ |
D | TestHelpers.h | 81 #define ASSERT_FP_EQ(expected, actual) \ macro
|