Home
last modified time | relevance | path

Searched refs:negInf (Results 1 – 25 of 58) sorted by relevance

123

/external/llvm-project/libc/test/src/math/
Dfminl_test.cpp21 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()
Dfminf_test.cpp21 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()
Dfmin_test.cpp21 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()
Dfmaxf_test.cpp21 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()
Dfmaxl_test.cpp21 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()
Dfmax_test.cpp21 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()
DFDimTest.h24 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();
DHypotTest.h29 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()
DLdExpTest.h34 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()
Dlogbl_test.cpp19 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()
Dlogb_test.cpp41 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()
Dlogbf_test.cpp41 valueFromBits(BitPatterns::negInf)))); in TEST()
43 EXPECT_EQ(BitPatterns::negInf, in TEST()
45 EXPECT_EQ(BitPatterns::negInf, valueAsBits(__llvm_libc::logbf( in TEST()
Dcopysignl_test.cpp23 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()
Dcopysign_test.cpp23 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()
Dcopysignf_test.cpp23 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()
Dfloor_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::floor(negInf)); in TEST()
Dceil_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::ceil(negInf)); in TEST()
Dtruncf_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::truncf(negInf)); in TEST()
Dround_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::round(negInf)); in TEST()
Dtruncl_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::truncl(negInf)); in TEST()
Droundl_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::roundl(negInf)); in TEST()
Dceilf_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::ceilf(negInf)); in TEST()
Dtrunc_test.cpp27 EXPECT_FP_EQ(negInf, __llvm_libc::trunc(negInf)); in TEST()
/external/llvm-project/flang/unittests/Evaluate/
Dreal.cpp109 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/
DBitPatterns.h29 static constexpr BitsType negInf = 0xff800000U;
49 static constexpr BitsType negInf = 0xfff0000000000000ULL;

123