Lines Matching refs:valueAsBits
21 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()
68 EXPECT_EQ(valueAsBits(-0.5), in TEST()
69 valueAsBits(__llvm_libc::frexp(-1.0, &exponent))); in TEST()
72 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(2.0, &exponent))); in TEST()
74 EXPECT_EQ(valueAsBits(-0.5), in TEST()
75 valueAsBits(__llvm_libc::frexp(-2.0, &exponent))); in TEST()
78 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(4.0, &exponent))); in TEST()
80 EXPECT_EQ(valueAsBits(-0.5), in TEST()
81 valueAsBits(__llvm_libc::frexp(-4.0, &exponent))); in TEST()
84 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(8.0, &exponent))); in TEST()
86 EXPECT_EQ(valueAsBits(-0.5), in TEST()
87 valueAsBits(__llvm_libc::frexp(-8.0, &exponent))); in TEST()
90 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(16.0, &exponent))); in TEST()
92 EXPECT_EQ(valueAsBits(-0.5), in TEST()
93 valueAsBits(__llvm_libc::frexp(-16.0, &exponent))); in TEST()
96 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(32.0, &exponent))); in TEST()
98 EXPECT_EQ(valueAsBits(-0.5), in TEST()
99 valueAsBits(__llvm_libc::frexp(-32.0, &exponent))); in TEST()
102 EXPECT_EQ(valueAsBits(0.5), valueAsBits(__llvm_libc::frexp(64.0, &exponent))); in TEST()
104 EXPECT_EQ(valueAsBits(-0.5), in TEST()
105 valueAsBits(__llvm_libc::frexp(-64.0, &exponent))); in TEST()
112 EXPECT_EQ(valueAsBits(0.75), in TEST()
113 valueAsBits(__llvm_libc::frexp(24.0, &exponent))); in TEST()
115 EXPECT_EQ(valueAsBits(-0.75), in TEST()
116 valueAsBits(__llvm_libc::frexp(-24.0, &exponent))); in TEST()
119 EXPECT_EQ(valueAsBits(0.625), in TEST()
120 valueAsBits(__llvm_libc::frexp(40.0, &exponent))); in TEST()
122 EXPECT_EQ(valueAsBits(-0.625), in TEST()
123 valueAsBits(__llvm_libc::frexp(-40.0, &exponent))); in TEST()
126 EXPECT_EQ(valueAsBits(0.78125), in TEST()
127 valueAsBits(__llvm_libc::frexp(800.0, &exponent))); in TEST()
129 EXPECT_EQ(valueAsBits(-0.78125), in TEST()
130 valueAsBits(__llvm_libc::frexp(-800.0, &exponent))); in TEST()