Home
last modified time | relevance | path

Searched refs:bExp (Results 1 – 15 of 15) sorted by relevance

/openbmc/intel-ipmi-oem/tests/
H A Dtest_sensorcommands.cpp58 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()
[all …]
/openbmc/phosphor-host-ipmid/test/dbus-sdr/
H A Dsensorcommands_unittest.cpp58 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()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dsoftfloat.c226 int16 aExp, bExp, zExp; in subFloat64Sigs() local
233 bExp = extractFloat64Exp(b); in subFloat64Sigs()
234 expDiff = aExp - bExp; in subFloat64Sigs()
243 bExp = 1; in subFloat64Sigs()
251 if (bExp == 0x7FF) { in subFloat64Sigs()
263 zExp = bExp; in subFloat64Sigs()
270 if (bExp == 0) { in subFloat64Sigs()
287 int16 aExp, bExp, zExp; in addFloat64Sigs() local
294 bExp = extractFloat64Exp(b); in addFloat64Sigs()
295 expDiff = aExp - bExp; in addFloat64Sigs()
[all …]
/openbmc/intel-ipmi-oem/include/
H A Dsensorutils.hpp160 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
189 bExp = 0; in getSensorAttributes()
245 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
249 if (!(scaleFloatExp(dB, bExp))) in getSensorAttributes()
252 << (int)bExp << ") exceeds multiplier scale (M=" << dM in getSensorAttributes()
259 normalizeIntExp(bValue, bExp, dB); in getSensorAttributes()
267 const int16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
284 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
319 int8_t bExp = 0; in getScaledIPMIValue() local
323 getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
[all …]
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsensorutils.cpp151 int8_t& rExp, int16_t& bValue, int8_t& bExp, in getSensorAttributes() argument
181 bExp = 0; in getSensorAttributes()
237 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes()
241 if (!(scaleFloatExp(dB, bExp))) in getSensorAttributes()
244 << (int)bExp << ") exceeds multiplier scale (M=" << dM in getSensorAttributes()
251 normalizeIntExp(bValue, bExp, dB); in getSensorAttributes()
259 const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
276 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
311 int8_t bExp = 0; in getScaledIPMIValue() local
315 getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
[all …]
H A Dsensorcommands.cpp492 int8_t bExp = 0; in calculateValue() local
495 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in calculateValue()
503 value += ((double)bValue) * std::pow(10.0, bExp); in calculateValue()
977 int8_t bExp = 0; in ipmiSenGetSensorReading() local
980 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenGetSensorReading()
986 scaleIPMIValueFromDouble(reading, mValue, rExp, bValue, bExp, bSigned); in ipmiSenGetSensorReading()
1042 << " bExp=" << static_cast<int>(bExp) in ipmiSenGetSensorReading()
1168 int8_t bExp = 0; in ipmiSenSetSensorThresholds() local
1171 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiSenSetSensorThresholds()
1246 (bValue * std::pow(10.0, bExp))) * in ipmiSenSetSensorThresholds()
[all …]
/openbmc/linux/arch/arm/nwfpe/
H A Dsoftfloat.c1031 int16 aExp, bExp, zExp; in addFloat32Sigs() local
1038 bExp = extractFloat32Exp( b ); in addFloat32Sigs()
1039 expDiff = aExp - bExp; in addFloat32Sigs()
1047 if ( bExp == 0 ) { in addFloat32Sigs()
1057 if ( bExp == 0xFF ) { in addFloat32Sigs()
1068 zExp = bExp; in addFloat32Sigs()
1103 int16 aExp, bExp, zExp; in subFloat32Sigs() local
1110 bExp = extractFloat32Exp( b ); in subFloat32Sigs()
1111 expDiff = aExp - bExp; in subFloat32Sigs()
1123 bExp = 1; in subFloat32Sigs()
[all …]
/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp169 int16_t& bValue, int8_t& bExp, bool& bSigned) in getSensorAttributes() argument
243 bExp = 0; in getSensorAttributes()
248 if (bExp >= maxInt4) in getSensorAttributes()
255 bExp++; in getSensorAttributes()
261 if (bExp <= minInt4) in getSensorAttributes()
268 bExp -= 1; in getSensorAttributes()
279 const uint16_t bValue, const int8_t bExp, const bool bSigned) in scaleIPMIValueFromDouble() argument
282 (value - (bValue * std::pow(10, bExp) * std::pow(10, rExp))) / in scaleIPMIValueFromDouble()
306 int8_t bExp = 0; in getScaledIPMIValue() local
310 result = getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned); in getScaledIPMIValue()
[all …]
/openbmc/phosphor-host-ipmid/include/dbus-sdr/
H A Dsensorutils.hpp31 int8_t& rExp, int16_t& bValue, int8_t& bExp,
36 const int8_t bExp, const bool bSigned);
/openbmc/phosphor-host-ipmid/scripts/
H A Dwritesensor.mako.cpp50 bExp = sensor.get("bExp", 0)
90 .exponentB = ${bExp},
91 .scaledOffset = ${offsetB * pow(10,bExp)},
/openbmc/phosphor-mrw-tools/
H A Dgen_ipmi_sensor.pl152 my $bExp = $sensorTypeConfig->{$sensorName}->{"bExp"};
163 $data{'B_EXP'} = $bExp;
168 $debug .= "$multiplierM : $offsetB : $bExp : $rExp : $unit : ";
/openbmc/qemu/target/tricore/
H A Dfpu_helper.c56 uint32_t aExp, bExp, cExp; in f_maddsub_nan_result() local
71 bExp = (arg2 >> 23) & 0xff; in f_maddsub_nan_result()
77 if (((aExp == 0xff) || (bExp == 0xff)) && (cExp == 0xff)) { in f_maddsub_nan_result()
/openbmc/fb-ipmi-oem/src/
H A Dstoragecommands.cpp739 int8_t bExp; in ipmiStorageGetSDR() local
742 if (!getSensorAttributes(max, min, mValue, rExp, bValue, bExp, bSigned)) in ipmiStorageGetSDR()
774 record.body.r_b_exponents = bExp & 0x7; in ipmiStorageGetSDR()
775 if (bExp < 0) in ipmiStorageGetSDR()
/openbmc/docs/architecture/
H A Dsensor-architecture.md397 y = L[(Mx + B * 10^(bExp)) * 10^(rExp)]
404 - bExp: 4 bits, signed, `bExp` in YAML
424 bExp: 0
/openbmc/qemu/target/m68k/
H A Dsoftfloat.c123 int32_t aExp, bExp, shiftCount; in floatx80_scale() local
130 bExp = extractFloatx80Exp(b); in floatx80_scale()
133 if (bExp == 0x7FFF) { in floatx80_scale()
152 if (bExp < 0x3FFF) { in floatx80_scale()
158 if (bExp < 0x3FFF) { in floatx80_scale()
162 if (0x400F < bExp) { in floatx80_scale()
168 shiftCount = 0x403E - bExp; in floatx80_scale()