Lines Matching +full:0 +full:x0802

30     // Linear format: Exponent is negative: 0b1'1111  in TEST()
31 voutModeValue = 0b0001'1111u; in TEST()
36 // Linear format: Exponent is negative: 0b1'0000 in TEST()
37 voutModeValue = 0b1001'0000u; in TEST()
42 // Linear format: Exponent is positive: 0b0'1111 in TEST()
43 voutModeValue = 0b1000'1111u; in TEST()
48 // Linear format: Exponent is positive: 0b0'0001 in TEST()
49 voutModeValue = 0b0000'0001u; in TEST()
54 // Linear format: Exponent is zero: 0b0'0000 in TEST()
55 voutModeValue = 0b0000'0000u; in TEST()
58 EXPECT_EQ(parameter, 0); in TEST()
60 // VID format: VID code is 0b1'1111 in TEST()
61 voutModeValue = 0b0011'1111u; in TEST()
66 // VID format: VID code is 0b1'0000 in TEST()
67 voutModeValue = 0b1011'0000u; in TEST()
72 // VID format: VID code is 0b0'1111 in TEST()
73 voutModeValue = 0b1010'1111u; in TEST()
78 // VID format: VID code is 0b0'0001 in TEST()
79 voutModeValue = 0b0010'0001u; in TEST()
84 // VID format: VID code is 0b0'0000 in TEST()
85 voutModeValue = 0b1010'0000u; in TEST()
88 EXPECT_EQ(parameter, 0); in TEST()
91 voutModeValue = 0b1100'0000u; in TEST()
94 EXPECT_EQ(parameter, 0); in TEST()
97 voutModeValue = 0b0110'0000u; in TEST()
100 EXPECT_EQ(parameter, 0); in TEST()
153 value = 0x81ff; in TEST()
158 value = 0x7802; in TEST()
163 value = 0x0c00; in TEST()
168 value = 0xabff; in TEST()
171 // Exponent = 0, mantissa > 0 in TEST()
172 // mantissa : 1, exponent : 0, decimal = 1 * 2^0 = 1 in TEST()
173 value = 0x0001; in TEST()
176 // Exponent > 0, mantissa > 0 in TEST()
178 value = 0x0802; in TEST()
181 // Exponent < 0, mantissa > 0 in TEST()
183 value = 0xf80f; in TEST()
186 // Exponent > 0, mantissa = 0 in TEST()
187 // mantissa : 0, exponent : 3, decimal = 0 * 2^3 = 0 in TEST()
188 value = 0x1800; in TEST()
189 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0); in TEST()
191 // Exponent > 0, mantissa < 0 in TEST()
193 value = 0x1ffe; in TEST()
203 value = 0x0001; in TEST()
207 // mantissa : 15, exponent : 0, decimal = 15 * 2^0 = 15 in TEST()
208 value = 0x000f; in TEST()
209 exponent = 0; in TEST()
213 value = 0x00ff; in TEST()
218 // mantissa : 0, exponent : 10, decimal = 0 * 2^10 = 0 in TEST()
219 value = 0x0000; in TEST()
221 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 0); in TEST()
229 // Exponent > 0: Value is not rounded up in TEST()
235 // Exponent > 0: Value is rounded up in TEST()
241 // Exponent = 0: Value is not rounded up in TEST()
243 exponent = 0; in TEST()
244 // 2.49 / 2^0 == 2.49 = 2 in TEST()
247 // Exponent = 0: Value is rounded up in TEST()
249 exponent = 0; in TEST()
250 // 2.51 / 2^0 == 2.51 = 3 in TEST()
253 // Exponent < 0: Value is not rounded up in TEST()
259 // Exponent < 0: Value is rounded up in TEST()