Lines Matching refs:exponent
200 int8_t exponent; in TEST() local
204 exponent = 2; in TEST()
205 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 4); in TEST()
209 exponent = 0; in TEST()
210 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 15); in TEST()
214 exponent = -3; in TEST()
215 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), in TEST()
220 exponent = 10; in TEST()
221 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 0); in TEST()
227 int8_t exponent; in TEST() local
231 exponent = 2; in TEST()
233 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 3); in TEST()
237 exponent = 2; in TEST()
239 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 4); in TEST()
243 exponent = 0; in TEST()
245 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 2); in TEST()
249 exponent = 0; in TEST()
251 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 3); in TEST()
255 exponent = -8; in TEST()
257 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 339); in TEST()
261 exponent = -8; in TEST()
263 EXPECT_EQ(pmbus_utils::convertToVoutLinear(volts, exponent), 340); in TEST()