Home
last modified time | relevance | path

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

/openbmc/fb-ipmi-oem/include/
H A Dsensorutils.hpp175 double bDouble; in getSensorAttributes() local
188 bDouble = floor(0.5 + ((max + min) / 2)); in getSensorAttributes()
193 bDouble = min; in getSensorAttributes()
223 if (bDouble / std::pow(10, rExp + minInt4 - 1) > bDouble) in getSensorAttributes()
243 bDouble /= std::pow(10, rExp); in getSensorAttributes()
247 while (bDouble > maxInt10 || bDouble < minInt10) in getSensorAttributes()
255 bDouble /= 10; in getSensorAttributes()
259 while (((fabs(bDouble) - floor(fabs(bDouble))) / fabs(bDouble)) > in getSensorAttributes()
268 bDouble *= 10; in getSensorAttributes()
273 bValue = static_cast<int16_t>(bDouble) & maxInt10; in getSensorAttributes()