Home
last modified time | relevance | path

Searched refs:valueFromBits (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/libc/test/src/math/
Dexp2f_test.cpp25 using __llvm_libc::fputil::valueFromBits;
35 isQuietNaN(__llvm_libc::exp2f(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
39 __llvm_libc::exp2f(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
43 __llvm_libc::exp2f(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
47 __llvm_libc::exp2f(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST()
51 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::inf)))); in TEST()
55 valueFromBits(BitPatterns::negInf)))); in TEST()
59 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::zero)))); in TEST()
63 valueFromBits(BitPatterns::negZero)))); in TEST()
70 valueAsBits(__llvm_libc::exp2f(valueFromBits(0x7f7fffffU)))); in TEST()
[all …]
Dexpf_test.cpp25 using __llvm_libc::fputil::valueFromBits;
35 isQuietNaN(__llvm_libc::expf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
39 __llvm_libc::expf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
43 __llvm_libc::expf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
47 __llvm_libc::expf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST()
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()
63 valueFromBits(BitPatterns::negZero)))); in TEST()
70 valueAsBits(__llvm_libc::expf(valueFromBits(0x7f7fffffU)))); in TEST()
[all …]
Dsinf_test.cpp27 using __llvm_libc::fputil::valueFromBits;
39 isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
43 __llvm_libc::sinf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
47 __llvm_libc::sinf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
51 __llvm_libc::sinf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST()
55 valueAsBits(__llvm_libc::sinf(valueFromBits(BitPatterns::zero)))); in TEST()
59 valueFromBits(BitPatterns::negZero)))); in TEST()
63 EXPECT_TRUE(isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::inf)))); in TEST()
68 isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::negInf)))); in TEST()
76 float x = valueFromBits(v); in TEST()
[all …]
Dcosf_test.cpp27 using __llvm_libc::fputil::valueFromBits;
39 isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
43 __llvm_libc::cosf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
47 __llvm_libc::cosf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
51 __llvm_libc::cosf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST()
55 valueAsBits(__llvm_libc::cosf(valueFromBits(BitPatterns::zero)))); in TEST()
59 valueFromBits(BitPatterns::negZero)))); in TEST()
63 EXPECT_TRUE(isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::inf)))); in TEST()
68 isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::negInf)))); in TEST()
76 float x = valueFromBits(v); in TEST()
[all …]
Dsincosf_test.cpp27 using __llvm_libc::fputil::valueFromBits;
39 __llvm_libc::sincosf(valueFromBits(BitPatterns::aQuietNaN), &sin, &cos); in TEST()
44 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeQuietNaN), &sin, in TEST()
50 __llvm_libc::sincosf(valueFromBits(BitPatterns::aSignallingNaN), &sin, &cos); in TEST()
55 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeSignallingNaN), &sin, in TEST()
61 __llvm_libc::sincosf(valueFromBits(BitPatterns::zero), &sin, &cos); in TEST()
66 __llvm_libc::sincosf(valueFromBits(BitPatterns::negZero), &sin, &cos); in TEST()
72 __llvm_libc::sincosf(valueFromBits(BitPatterns::inf), &sin, &cos); in TEST()
78 __llvm_libc::sincosf(valueFromBits(BitPatterns::negInf), &sin, &cos); in TEST()
88 float x = valueFromBits(v); in TEST()
[all …]
Dlogb_test.cpp18 using __llvm_libc::fputil::valueFromBits;
26 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
29 valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
33 __llvm_libc::logb(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
36 valueFromBits(BitPatterns::aNegativeSignallingNaN)))); 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()
46 valueFromBits(BitPatterns::negZero)))); in TEST()
91 double x = valueFromBits(v); in TEST()
Dlogbf_test.cpp18 using __llvm_libc::fputil::valueFromBits;
26 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST()
29 valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST()
33 valueFromBits(BitPatterns::aSignallingNaN)))); in TEST()
36 valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST()
39 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::inf)))); in TEST()
41 valueFromBits(BitPatterns::negInf)))); in TEST()
44 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::zero)))); in TEST()
46 valueFromBits(BitPatterns::negZero)))); in TEST()
91 float x = valueFromBits(v); in TEST()
Dmodff_test.cpp19 using __llvm_libc::fputil::valueFromBits;
29 valueFromBits(BitPatterns::aQuietNaN), &integral))); in TEST()
32 valueFromBits(BitPatterns::aNegativeQuietNaN), &integral))); in TEST()
36 valueFromBits(BitPatterns::aSignallingNaN), &integral))); in TEST()
40 valueFromBits(BitPatterns::aNegativeSignallingNaN), &integral))); in TEST()
43 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::inf), in TEST()
48 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::negInf), in TEST()
53 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::zero), in TEST()
58 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::negZero), in TEST()
124 float x = valueFromBits(v); in TEST()
Dmodf_test.cpp19 using __llvm_libc::fputil::valueFromBits;
28 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::aQuietNaN), in TEST()
32 valueFromBits(BitPatterns::aNegativeQuietNaN), &integral))); in TEST()
36 valueFromBits(BitPatterns::aSignallingNaN), &integral))); in TEST()
40 valueFromBits(BitPatterns::aNegativeSignallingNaN), &integral))); in TEST()
44 __llvm_libc::modf(valueFromBits(BitPatterns::inf), &integral))); in TEST()
48 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::negInf), in TEST()
53 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::zero), in TEST()
58 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::negZero), in TEST()
120 double x = valueFromBits(v); in TEST()
Dfrexp_test.cpp22 using __llvm_libc::fputil::valueFromBits;
34 valueFromBits(BitPatterns::aQuietNaN), &exponent))); in TEST()
37 valueFromBits(BitPatterns::aNegativeQuietNaN), &exponent))); in TEST()
41 valueFromBits(BitPatterns::aSignallingNaN), &exponent))); in TEST()
45 valueFromBits(BitPatterns::aNegativeSignallingNaN), &exponent))); in TEST()
48 valueFromBits(BitPatterns::inf), &exponent))); 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()
Dfrexpf_test.cpp22 using __llvm_libc::fputil::valueFromBits;
34 valueFromBits(BitPatterns::aQuietNaN), &exponent))); in TEST()
37 valueFromBits(BitPatterns::aNegativeQuietNaN), &exponent))); in TEST()
41 valueFromBits(BitPatterns::aSignallingNaN), &exponent))); in TEST()
45 valueFromBits(BitPatterns::aNegativeSignallingNaN), &exponent))); in TEST()
48 valueFromBits(BitPatterns::inf), &exponent))); 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()
/external/llvm-project/libc/utils/FPUtil/
DFloatOperations.h32 static inline FloatTypeT<BitsType> valueFromBits(BitsType bits) { in valueFromBits() function