Lines Matching refs:bExp
58 void testValue(int x, double y, int16_t M, int8_t rExp, int16_t B, int8_t bExp, in testValue() argument
71 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
74 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
82 ipmi::scaleIPMIValueFromDouble(y, M, rExp, B, bExp, bSigned); in testValue()
85 yRoundtrip = ipmitool_y_from_x(actual, M, rExp, B, bExp, bSigned); in testValue()
100 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
109 int8_t bExp; in testBounds() local
113 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
126 yMin, yMax, mValue, (int)rExp, bValue, (int)bExp, (int)bSigned); in testBounds()
146 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
147 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
148 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
149 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
150 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
160 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
161 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
162 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
163 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
164 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
314 int8_t bExp; in TEST() local
321 bExp, bSigned); in TEST()
329 EXPECT_EQ(bExp, 0); in TEST()
332 scaledVal = ipmi::scaleIPMIValueFromDouble(0x50, mValue, rExp, bValue, bExp, in TEST()
341 bExp, bSigned); in TEST()
350 EXPECT_EQ(bExp, 0); in TEST()
355 scaledVal = ipmi::scaleIPMIValueFromDouble(-20, mValue, rExp, bValue, bExp, in TEST()
364 bExp, bSigned); in TEST()
372 EXPECT_EQ(bExp, 0); in TEST()
380 bExp, bSigned); in TEST()
388 EXPECT_EQ(bExp, 0); in TEST()
390 scaledVal = ipmi::scaleIPMIValueFromDouble(12.2, mValue, rExp, bValue, bExp, in TEST()
401 bExp, bSigned); in TEST()
410 EXPECT_EQ(bExp, 4); in TEST()
418 bExp, bSigned); in TEST()
429 EXPECT_EQ(bExp, -1); in TEST()
433 ipmi::scaleIPMIValueFromDouble(5, mValue, rExp, bValue, bExp, bSigned); in TEST()
443 bExp, bSigned); in TEST()
451 bExp, bSigned); in TEST()
460 bExp, bSigned); in TEST()
467 bExp, bSigned); in TEST()
475 EXPECT_EQ(bExp, 5); in TEST()