Home
last modified time | relevance | path

Searched refs:ASSERT_FP_EQ (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/libc/test/src/math/
Dsqrtl_test.cpp26 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()
Dsqrtf_test.cpp26 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()
Dsqrt_test.cpp26 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()
DLdExpTest.h43 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 …]
Dcopysignl_test.cpp40 ASSERT_FP_EQ(res1, -x); in TEST()
43 ASSERT_FP_EQ(res2, x); in TEST()
Dcopysign_test.cpp40 ASSERT_FP_EQ(res1, -x); in TEST()
43 ASSERT_FP_EQ(res2, x); in TEST()
Dcopysignf_test.cpp40 ASSERT_FP_EQ(res1, -x); in TEST()
43 ASSERT_FP_EQ(res2, x); in TEST()
Dfminl_test.cpp67 ASSERT_FP_EQ(x, __llvm_libc::fminl(x, y)); in TEST()
69 ASSERT_FP_EQ(y, __llvm_libc::fminl(x, y)); in TEST()
Dfmaxf_test.cpp67 ASSERT_FP_EQ(x, __llvm_libc::fmaxf(x, y)); in TEST()
69 ASSERT_FP_EQ(y, __llvm_libc::fmaxf(x, y)); in TEST()
Dfminf_test.cpp67 ASSERT_FP_EQ(x, __llvm_libc::fminf(x, y)); in TEST()
69 ASSERT_FP_EQ(y, __llvm_libc::fminf(x, y)); in TEST()
Dfmin_test.cpp67 ASSERT_FP_EQ(x, __llvm_libc::fmin(x, y)); in TEST()
69 ASSERT_FP_EQ(y, __llvm_libc::fmin(x, y)); in TEST()
Dfmaxl_test.cpp67 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/
DTestHelpers.h81 #define ASSERT_FP_EQ(expected, actual) \ macro