/external/llvm-project/libc/test/src/math/ |
D | fminl_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(negInf, 0.0L)); in TEST() 40 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(-0.0L, negInf)); in TEST() 41 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(negInf, -1.2345L)); in TEST() 42 EXPECT_FP_EQ(negInf, __llvm_libc::fminl(1.2345L, negInf)); in TEST()
|
D | fminf_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(negInf, 0.0f)); in TEST() 40 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(-0.0f, negInf)); in TEST() 41 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(negInf, -1.2345f)); in TEST() 42 EXPECT_FP_EQ(negInf, __llvm_libc::fminf(1.2345f, negInf)); in TEST()
|
D | fmin_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(negInf, 0.0)); in TEST() 40 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(-0.0, negInf)); in TEST() 41 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(negInf, -1.2345)); in TEST() 42 EXPECT_FP_EQ(negInf, __llvm_libc::fmin(1.2345, negInf)); in TEST()
|
D | fmaxf_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fmaxf(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(inf, __llvm_libc::fmaxf(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(inf, __llvm_libc::fmaxf(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(0.0f, __llvm_libc::fmaxf(negInf, 0.0f)); in TEST() 40 EXPECT_FP_EQ(-0.0f, __llvm_libc::fmaxf(-0.0f, negInf)); in TEST() 41 EXPECT_FP_EQ(-1.2345f, __llvm_libc::fmaxf(negInf, -1.2345f)); in TEST() 42 EXPECT_FP_EQ(1.2345f, __llvm_libc::fmaxf(1.2345f, negInf)); in TEST()
|
D | fmaxl_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fmaxl(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(inf, __llvm_libc::fmaxl(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(inf, __llvm_libc::fmaxl(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(0.0L, __llvm_libc::fmaxl(negInf, 0.0L)); in TEST() 40 EXPECT_FP_EQ(-0.0L, __llvm_libc::fmaxl(-0.0L, negInf)); in TEST() 41 EXPECT_FP_EQ(-1.2345L, __llvm_libc::fmaxl(negInf, -1.2345L)); in TEST() 42 EXPECT_FP_EQ(1.2345L, __llvm_libc::fmaxl(1.2345L, negInf)); in TEST()
|
D | fmax_test.cpp | 21 EXPECT_FP_EQ(negInf, __llvm_libc::fmax(negInf, nan)); in TEST() 30 EXPECT_FP_EQ(inf, __llvm_libc::fmax(negInf, inf)); in TEST() 38 EXPECT_FP_EQ(inf, __llvm_libc::fmax(inf, negInf)); in TEST() 39 EXPECT_FP_EQ(0.0, __llvm_libc::fmax(negInf, 0.0)); in TEST() 40 EXPECT_FP_EQ(-0.0, __llvm_libc::fmax(-0.0, negInf)); in TEST() 41 EXPECT_FP_EQ(-1.2345, __llvm_libc::fmax(negInf, -1.2345)); in TEST() 42 EXPECT_FP_EQ(1.2345, __llvm_libc::fmax(1.2345, negInf)); in TEST()
|
D | FDimTest.h | 24 EXPECT_FP_EQ(nan, func(negInf, nan)); in testNaNArg() 33 EXPECT_FP_EQ(zero, func(negInf, inf)); in testInfArg() 41 EXPECT_FP_EQ(inf, func(inf, negInf)); in testNegInfArg() 42 EXPECT_FP_EQ(zero, func(negInf, zero)); in testNegInfArg() 43 EXPECT_FP_EQ(inf, func(negZero, negInf)); in testNegInfArg() 44 EXPECT_FP_EQ(zero, func(negInf, T(-1.2345))); in testNegInfArg() 45 EXPECT_FP_EQ(inf, func(T(1.2345), negInf)); in testNegInfArg() 79 const T negInf = __llvm_libc::fputil::FPBits<T>::negInf();
|
D | HypotTest.h | 29 const T negInf = __llvm_libc::fputil::FPBits<T>::negInf(); 36 EXPECT_FP_EQ(func(nan, negInf), inf); in testSpecialNumbers() 38 EXPECT_FP_EQ(func(negInf, negZero), inf); in testSpecialNumbers()
|
D | LdExpTest.h | 34 const T negInf = __llvm_libc::fputil::FPBits<T>::negInf(); 46 ASSERT_FP_EQ(negInf, func(negInf, exp)); in testSpecialNumbers() 66 ASSERT_FP_EQ(negInf, func(-T(x), exp)); in testOverflow()
|
D | logbl_test.cpp | 19 EXPECT_TRUE(FPBits::inf() == __llvm_libc::logbl(FPBits::negInf())); in TEST() 21 EXPECT_TRUE(FPBits::negInf() == __llvm_libc::logbl(FPBits::zero())); in TEST() 22 EXPECT_TRUE(FPBits::negInf() == __llvm_libc::logbl(FPBits::negZero())); in TEST()
|
D | logb_test.cpp | 41 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::negInf)))); in TEST() 43 EXPECT_EQ(BitPatterns::negInf, in TEST() 45 EXPECT_EQ(BitPatterns::negInf, valueAsBits(__llvm_libc::logb( in TEST()
|
D | logbf_test.cpp | 41 valueFromBits(BitPatterns::negInf)))); in TEST() 43 EXPECT_EQ(BitPatterns::negInf, in TEST() 45 EXPECT_EQ(BitPatterns::negInf, valueAsBits(__llvm_libc::logbf( in TEST()
|
D | copysignl_test.cpp | 23 EXPECT_FP_EQ(negInf, __llvm_libc::copysignl(inf, -1.0)); in TEST() 24 EXPECT_FP_EQ(inf, __llvm_libc::copysignl(negInf, 1.0)); in TEST()
|
D | copysign_test.cpp | 23 EXPECT_FP_EQ(negInf, __llvm_libc::copysign(inf, -1.0)); in TEST() 24 EXPECT_FP_EQ(inf, __llvm_libc::copysign(negInf, 1.0)); in TEST()
|
D | copysignf_test.cpp | 23 EXPECT_FP_EQ(negInf, __llvm_libc::copysignf(inf, -1.0)); in TEST() 24 EXPECT_FP_EQ(inf, __llvm_libc::copysignf(negInf, 1.0)); in TEST()
|
D | floor_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::floor(negInf)); in TEST()
|
D | ceil_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::ceil(negInf)); in TEST()
|
D | truncf_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::truncf(negInf)); in TEST()
|
D | round_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::round(negInf)); in TEST()
|
D | truncl_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::truncl(negInf)); in TEST()
|
D | roundl_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::roundl(negInf)); in TEST()
|
D | ceilf_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::ceilf(negInf)); in TEST()
|
D | trunc_test.cpp | 27 EXPECT_FP_EQ(negInf, __llvm_libc::trunc(negInf)); in TEST()
|
/external/llvm-project/flang/unittests/Evaluate/ |
D | real.cpp | 109 R negInf{Word{maxExponent}.SHIFTL(significandBits).IOR(Word::MASKL(1))}; in basicTests() local 110 TEST(negInf.IsNegative())(desc); in basicTests() local 111 TEST(!negInf.IsNotANumber())(desc); in basicTests() local 112 TEST(negInf.IsInfinite())(desc); in basicTests() local 113 TEST(!negInf.IsZero())(desc); in basicTests() local 114 TEST(inf.RawBits().CompareUnsigned(negInf.ABS().RawBits()) == Ordering::Equal) in basicTests() 116 TEST(inf.RawBits().CompareUnsigned(negInf.Negate().RawBits()) == in basicTests() 119 TEST(inf.Negate().RawBits().CompareUnsigned(negInf.RawBits()) == in basicTests() 122 TEST(zero.Compare(negInf) == Relation::Greater)(desc); in basicTests() 123 TEST(minusZero.Compare(negInf) == Relation::Greater)(desc); in basicTests() [all …]
|
/external/llvm-project/libc/utils/FPUtil/ |
D | BitPatterns.h | 29 static constexpr BitsType negInf = 0xff800000U; 49 static constexpr BitsType negInf = 0xfff0000000000000ULL;
|