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()
101 x, result, M, (int)rExp, B, (int)bExp, (int)bSigned, y, yRoundtrip); in testValue()
110 int8_t bExp; in testBounds() local
114 result = ipmi::getSensorAttributes(yMax, yMin, mValue, rExp, bValue, bExp, in testBounds()
127 yMin, yMax, mValue, (int)rExp, bValue, (int)bExp, (int)bSigned); in testBounds()
147 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
148 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
149 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
150 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
151 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
161 testValue(xMin, yMin, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
162 testValue(x25p, y25p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
163 testValue(x50p, y50p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
164 testValue(x75p, y75p, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
165 testValue(xMax, yMax, mValue, rExp, bValue, bExp, bSigned, yRange); in testBounds()
315 int8_t bExp; in TEST() local
322 bExp, bSigned); in TEST()
330 EXPECT_EQ(bExp, 0); in TEST()
333 scaledVal = ipmi::scaleIPMIValueFromDouble(0x50, mValue, rExp, bValue, bExp, in TEST()
342 bExp, bSigned); in TEST()
351 EXPECT_EQ(bExp, 0); in TEST()
356 scaledVal = ipmi::scaleIPMIValueFromDouble(-20, mValue, rExp, bValue, bExp, in TEST()
365 bExp, bSigned); in TEST()
373 EXPECT_EQ(bExp, 0); in TEST()
381 bExp, bSigned); in TEST()
389 EXPECT_EQ(bExp, 0); in TEST()
391 scaledVal = ipmi::scaleIPMIValueFromDouble(12.2, mValue, rExp, bValue, bExp, in TEST()
402 bExp, bSigned); in TEST()
411 EXPECT_EQ(bExp, 4); in TEST()
419 bExp, bSigned); in TEST()
430 EXPECT_EQ(bExp, -1); in TEST()
434 ipmi::scaleIPMIValueFromDouble(5, mValue, rExp, bValue, bExp, bSigned); in TEST()
444 bExp, bSigned); in TEST()
452 bExp, bSigned); in TEST()
461 bExp, bSigned); in TEST()
468 bExp, bSigned); in TEST()
476 EXPECT_EQ(bExp, 5); in TEST()