Home
last modified time | relevance | path

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

/external/llvm-project/libc/test/src/math/
Dlogb_test.cpp17 using __llvm_libc::fputil::valueAsBits;
26 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
28 valueAsBits(__llvm_libc::logb( in TEST()
32 valueAsBits( in TEST()
35 valueAsBits(__llvm_libc::logb( in TEST()
39 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::inf)))); in TEST()
41 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::negInf)))); in TEST()
44 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::zero)))); in TEST()
45 EXPECT_EQ(BitPatterns::negInf, valueAsBits(__llvm_libc::logb( in TEST()
50 EXPECT_EQ(valueAsBits(0.0), valueAsBits(__llvm_libc::logb(1.0))); in TEST()
[all …]
Dlogbf_test.cpp17 using __llvm_libc::fputil::valueAsBits;
26 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
28 valueAsBits(__llvm_libc::logbf( in TEST()
32 valueAsBits(__llvm_libc::logbf( in TEST()
35 valueAsBits(__llvm_libc::logbf( in TEST()
39 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::inf)))); in TEST()
40 EXPECT_EQ(BitPatterns::inf, valueAsBits(__llvm_libc::logbf( in TEST()
44 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::zero)))); in TEST()
45 EXPECT_EQ(BitPatterns::negInf, valueAsBits(__llvm_libc::logbf( in TEST()
50 EXPECT_EQ(valueAsBits(0.0f), valueAsBits(__llvm_libc::logbf(1.0f))); in TEST()
[all …]
Dmodff_test.cpp18 using __llvm_libc::fputil::valueAsBits;
28 valueAsBits(__llvm_libc::modff( in TEST()
31 valueAsBits(__llvm_libc::modff( in TEST()
35 valueAsBits(__llvm_libc::modff( in TEST()
39 valueAsBits(__llvm_libc::modff( in TEST()
43 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::inf), in TEST()
45 EXPECT_EQ(valueAsBits(integral), BitPatterns::inf); in TEST()
48 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::negInf), in TEST()
50 EXPECT_EQ(valueAsBits(integral), BitPatterns::negInf); in TEST()
53 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::zero), in TEST()
[all …]
Dmodf_test.cpp18 using __llvm_libc::fputil::valueAsBits;
28 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::aQuietNaN), in TEST()
31 valueAsBits(__llvm_libc::modf( in TEST()
35 valueAsBits(__llvm_libc::modf( in TEST()
39 valueAsBits(__llvm_libc::modf( in TEST()
43 valueAsBits( in TEST()
45 EXPECT_EQ(valueAsBits(integral), BitPatterns::inf); in TEST()
48 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::negInf), in TEST()
50 EXPECT_EQ(valueAsBits(integral), BitPatterns::negInf); in TEST()
53 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::zero), in TEST()
[all …]
Dfrexp_test.cpp21 using __llvm_libc::fputil::valueAsBits;
33 valueAsBits(__llvm_libc::frexp( in TEST()
36 valueAsBits(__llvm_libc::frexp( in TEST()
40 valueAsBits(__llvm_libc::frexp( in TEST()
44 valueAsBits(__llvm_libc::frexp( in TEST()
47 EXPECT_EQ(BitPatterns::inf, valueAsBits(__llvm_libc::frexp( in TEST()
50 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::negInf), in TEST()
54 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::zero), in TEST()
58 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::negZero), in TEST()
66 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(1.0, &exponent))); in TEST()
[all …]
Dfrexpf_test.cpp21 using __llvm_libc::fputil::valueAsBits;
33 valueAsBits(__llvm_libc::frexpf( in TEST()
36 valueAsBits(__llvm_libc::frexpf( in TEST()
40 valueAsBits(__llvm_libc::frexpf( in TEST()
44 valueAsBits(__llvm_libc::frexpf( in TEST()
47 EXPECT_EQ(BitPatterns::inf, valueAsBits(__llvm_libc::frexpf( in TEST()
50 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::negInf), in TEST()
54 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::zero), in TEST()
58 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::negZero), in TEST()
66 EXPECT_EQ(valueAsBits(0.5f), in TEST()
[all …]
Dexpf_test.cpp24 using __llvm_libc::fputil::valueAsBits;
51 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::inf)))); in TEST()
55 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::negInf)))); in TEST()
59 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::zero)))); in TEST()
62 EXPECT_EQ(BitPatterns::one, valueAsBits(__llvm_libc::expf( in TEST()
70 valueAsBits(__llvm_libc::expf(valueFromBits(0x7f7fffffU)))); in TEST()
75 valueAsBits(__llvm_libc::expf(valueFromBits(0x42cffff8U)))); in TEST()
80 valueAsBits(__llvm_libc::expf(valueFromBits(0x42d00008U)))); in TEST()
87 valueAsBits(__llvm_libc::expf(valueFromBits(0xff7fffffU)))); in TEST()
92 valueAsBits(__llvm_libc::expf(valueFromBits(0xc2cffff8U)))); in TEST()
[all …]
Dexp2f_test.cpp24 using __llvm_libc::fputil::valueAsBits;
51 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::inf)))); in TEST()
54 EXPECT_EQ(BitPatterns::zero, valueAsBits(__llvm_libc::exp2f( in TEST()
59 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::zero)))); in TEST()
62 EXPECT_EQ(BitPatterns::one, valueAsBits(__llvm_libc::exp2f( in TEST()
70 valueAsBits(__llvm_libc::exp2f(valueFromBits(0x7f7fffffU)))); in TEST()
75 valueAsBits(__llvm_libc::exp2f(valueFromBits(0x43000000U)))); in TEST()
80 valueAsBits(__llvm_libc::exp2f(valueFromBits(0x43000001U)))); in TEST()
118 valueAsBits(__llvm_libc::exp2f(valueFromBits(0xff7fffffU)))); in TEST()
Dsincosf_test.cpp26 using __llvm_libc::fputil::valueAsBits;
62 EXPECT_EQ(BitPatterns::one, valueAsBits(cos)); in TEST()
63 EXPECT_EQ(BitPatterns::zero, valueAsBits(sin)); in TEST()
67 EXPECT_EQ(BitPatterns::one, valueAsBits(cos)); in TEST()
68 EXPECT_EQ(BitPatterns::negZero, valueAsBits(sin)); in TEST()
107 EXPECT_EQ(BitPatterns::one, valueAsBits(result_cos)); in TEST()
108 EXPECT_EQ(bits, valueAsBits(result_sin)); in TEST()
115 EXPECT_EQ(BitPatterns::one, valueAsBits(result_cos)); in TEST()
116 EXPECT_EQ(bits, valueAsBits(result_sin)); in TEST()
Dcosf_test.cpp26 using __llvm_libc::fputil::valueAsBits;
55 valueAsBits(__llvm_libc::cosf(valueFromBits(BitPatterns::zero)))); in TEST()
58 EXPECT_EQ(BitPatterns::one, valueAsBits(__llvm_libc::cosf( in TEST()
88 EXPECT_EQ(BitPatterns::one, valueAsBits(result)); in TEST()
93 EXPECT_EQ(BitPatterns::one, valueAsBits(result)); in TEST()
Dsinf_test.cpp26 using __llvm_libc::fputil::valueAsBits;
55 valueAsBits(__llvm_libc::sinf(valueFromBits(BitPatterns::zero)))); in TEST()
58 EXPECT_EQ(BitPatterns::negZero, valueAsBits(__llvm_libc::sinf( in TEST()
94 EXPECT_EQ(bits, valueAsBits(result)); in TEST()
100 EXPECT_EQ(bits, valueAsBits(result)); in TEST()
/external/llvm-project/libc/utils/FPUtil/
DClassificationFunctions.h31 return bitsAreInf(valueAsBits(x)); in isInf()
44 return bitsAreNaN(valueAsBits(x)); in isNaN()
62 return bitsAreInfOrNaN(valueAsBits(x)); in isInfOrNaN()
71 BitsType bits = valueAsBits(x); in isQuietNaN()
82 BitsType bits = valueAsBits(x); in isNegativeQuietNaN()
DFloatOperations.h23 static inline typename FloatProperties<T>::BitsType valueAsBits(T x) { in valueAsBits() function
40 return valueAsBits(x) & (~FloatProperties<T>::signMask); in absBits()
57 return getExponentFromBits(valueAsBits(x)); in getExponent()