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.hpp174 double bDouble; in getSensorAttributes() local
187 bDouble = floor(0.5 + ((max + min) / 2)); in getSensorAttributes()
192 bDouble = min; in getSensorAttributes()
222 if (bDouble / std::pow(10, rExp + minInt4 - 1) > bDouble) in getSensorAttributes()
242 bDouble /= std::pow(10, rExp); in getSensorAttributes()
246 while (bDouble > maxInt10 || bDouble < minInt10) in getSensorAttributes()
254 bDouble /= 10; in getSensorAttributes()
258 while (((fabs(bDouble) - floor(fabs(bDouble))) / fabs(bDouble)) > in getSensorAttributes()
267 bDouble *= 10; in getSensorAttributes()
272 bValue = static_cast<int16_t>(bDouble) & maxInt10; in getSensorAttributes()