/openbmc/linux/fs/reiserfs/ |
H A D | hashes.c | 130 int j, pow; in yura_hash() local 134 for (pow = 1, i = 1; i < len; i++) in yura_hash() 135 pow = pow * 10; in yura_hash() 140 a = (msg[0] - 48) * pow; in yura_hash() 144 for (pow = 1, j = i; j < len - 1; j++) in yura_hash() 145 pow = pow * 10; in yura_hash() 146 a = a + c * pow; in yura_hash() 151 for (pow = 1, j = i; j < len - 1; j++) in yura_hash() 152 pow = pow * 10; in yura_hash() 153 a = a + c * pow; in yura_hash() [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_smu_sensors.c | 287 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_release() local 289 if (pow->volts) in smu_cpu_power_release() 290 wf_put_sensor(pow->volts); in smu_cpu_power_release() 291 if (pow->amps) in smu_cpu_power_release() 292 wf_put_sensor(pow->amps); in smu_cpu_power_release() 293 kfree(pow); in smu_cpu_power_release() 298 struct smu_cpu_power_sensor *pow = to_smu_cpu_power(sr); in smu_cpu_power_get() local 303 rc = pow->amps->ops->get_value(pow->amps, &s); in smu_cpu_power_get() 307 if (pow->fake_volts) { in smu_cpu_power_get() 312 rc = pow->volts->ops->get_value(pow->volts, &volts); in smu_cpu_power_get() [all …]
|
/openbmc/intel-ipmi-oem/tests/ |
H A D | test_sensorcommands.cpp | 36 result = (double)(((m * val) + (b * pow(10, k1))) * pow(10, k2)); in ipmitool_y_from_x() 45 (double)(((m * (int8_t)val) + (b * pow(10, k1))) * pow(10, k2)); in ipmitool_y_from_x() 243 testBounds(0, std::pow(2.0, 32.0) - 1.0); in testRanges() 244 testBounds(0, std::pow(2.0, 32.0)); in testRanges() 245 testBounds(0.0 - std::pow(2.0, 31.0), std::pow(2.0, 31.0)); in testRanges() 246 testBounds((0.0 - std::pow(2.0, 31.0)) - 1.0, std::pow(2.0, 31.0)); in testRanges() 385 EXPECT_EQ(mValue, floor(((20.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() 393 expected = 12.2 / (mValue * std::pow(10, rExp)); in TEST() 407 EXPECT_EQ(mValue, floor(((8000.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() 423 EXPECT_EQ(mValue, floor(((20.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() [all …]
|
/openbmc/phosphor-host-ipmid/test/dbus-sdr/ |
H A D | sensorcommands_unittest.cpp | 36 result = (double)(((m * val) + (b * pow(10, k1))) * pow(10, k2)); in ipmitool_y_from_x() 45 (double)(((m * (int8_t)val) + (b * pow(10, k1))) * pow(10, k2)); in ipmitool_y_from_x() 244 testBounds(0, std::pow(2.0, 32.0) - 1.0); in testRanges() 245 testBounds(0, std::pow(2.0, 32.0)); in testRanges() 246 testBounds(0.0 - std::pow(2.0, 31.0), std::pow(2.0, 31.0)); in testRanges() 247 testBounds((0.0 - std::pow(2.0, 31.0)) - 1.0, std::pow(2.0, 31.0)); in testRanges() 386 EXPECT_EQ(mValue, floor(((20.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() 394 expected = 12.2 / (mValue * std::pow(10, rExp)); in TEST() 408 EXPECT_EQ(mValue, floor(((8000.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() 424 EXPECT_EQ(mValue, floor(((20.0 / 0xFF) / std::pow(10, rExp)) + 0.5)); in TEST() [all …]
|
/openbmc/qemu/include/libdecnumber/ |
H A D | decNumberLocal.h | 267 #define TODIGIT(u, cut, c, pow) { \ argument 269 pow=DECPOWERS[cut]*2; \ 270 if ((u)>pow) { \ 271 pow*=4; \ 272 if ((u)>=pow) {(u)-=pow; *(c)+=8;} \ 273 pow/=2; \ 274 if ((u)>=pow) {(u)-=pow; *(c)+=4;} \ 275 pow/=2; \ 277 if ((u)>=pow) {(u)-=pow; *(c)+=2;} \ 278 pow/=2; \ [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | pmbus_utils.hpp | 163 double decimal = mantissa * std::pow(2.0, exponent); in convertFromLinear() 183 double decimal = value * std::pow(2.0, exponent); in convertFromVoutLinear() 208 double mantissa = volts / std::pow(2.0, static_cast<double>(exponent)); in convertToVoutLinear()
|
/openbmc/intel-ipmi-oem/include/ |
H A D | sensorutils.hpp | 245 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes() 246 (min - ((dM * std::pow(10.0, rExp) * lowestX))); in getSensorAttributes() 284 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sensorutils.cpp | 237 double dB = std::pow(10.0, ((-rExp) - bExp)) * in getSensorAttributes() 238 (min - ((dM * std::pow(10.0, rExp) * lowestX))); in getSensorAttributes() 276 (std::pow(10.0, -rExp) * (value - (dB * std::pow(10.0, rExp + bExp)))) / in scaleIPMIValueFromDouble()
|
/openbmc/linux/drivers/media/common/v4l2-tpg/ |
H A D | v4l2-tpg-colors.c | 1168 return pow((-v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 1169 return (v <= 0.04045) ? v / 12.92 : pow((v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 1175 return -1.055 * pow(-v, 1.0 / 2.4) + 0.055; in transfer_rgb_to_srgb() 1178 return 1.055 * pow(v, 1.0 / 2.4) - 0.055; in transfer_rgb_to_srgb() 1183 return (v <= 0.0228) ? v * 4.0 : 1.1115 * pow(v, 0.45) - 0.1115; in transfer_rgb_to_smpte240m() 1189 return -1.099 * pow(-v, 0.45) + 0.099; in transfer_rgb_to_rec709() 1190 return (v < 0.018) ? v * 4.5 : 1.099 * pow(v, 0.45) - 0.099; in transfer_rgb_to_rec709() 1195 return (v < 0.081) ? v / 4.5 : pow((v + 0.099) / 1.099, 1.0 / 0.45); in transfer_rec709_to_rgb() 1200 return pow(v, 1.0 / 2.19921875); in transfer_rgb_to_oprgb() 1205 return pow(v, 1.0 / 2.6); in transfer_rgb_to_dcip3() [all …]
|
/openbmc/fb-ipmi-oem/include/ |
H A D | sensorutils.hpp | 222 if (bDouble / std::pow(10, rExp + minInt4 - 1) > bDouble) in getSensorAttributes() 242 bDouble /= std::pow(10, rExp); in getSensorAttributes() 282 (value - (bValue * std::pow(10, bExp) * std::pow(10, rExp))) / in scaleIPMIValueFromDouble() 283 (mValue * std::pow(10, rExp)); in scaleIPMIValueFromDouble()
|
/openbmc/linux/drivers/thermal/ |
H A D | k3_j72xx_bandgap.c | 280 int i, tmp, pow; in get_efuse_values() local 302 pow = tmp & 0x80; in get_efuse_values() 307 pow = tmp & 0x100; in get_efuse_values() 314 pow = ct_bm[id][i] >> __ffs(ct_bm[id][i]); in get_efuse_values() 315 pow += 1; in get_efuse_values() 316 pow /= 2; in get_efuse_values() 320 if (tmp & pow) { in get_efuse_values()
|
/openbmc/linux/drivers/mtd/spi-nor/ |
H A D | swp.c | 161 u8 pow, val; in spi_nor_sr_lock() local 201 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_lock() 202 val = pow << SR_BP_SHIFT; in spi_nor_sr_lock() 251 u8 pow, val; in spi_nor_sr_unlock() local 291 pow = ilog2(lock_len) - ilog2(min_prot_len) + 1; in spi_nor_sr_unlock() 292 val = pow << SR_BP_SHIFT; in spi_nor_sr_unlock()
|
/openbmc/linux/Documentation/scheduler/ |
H A D | sched-pelt.c | 26 x = ((1UL<<32)-1)*pow(y, i); in calc_runnable_avg_yN_inv() 103 y = pow(0.5, 1/(double)HALFLIFE); in main()
|
/openbmc/linux/drivers/clk/sunxi/ |
H A D | clk-sunxi.c | 726 u8 pow; member 733 .pow = 0, 756 .pow = 1, 770 .pow = 1, 799 data->pow ? CLK_DIVIDER_POWER_OF_TWO : 0, in sunxi_divider_clk_setup() 887 u8 pow; /* is it power-of-two based? */ member 906 { .shift = 0, .pow = 0, .critical = true }, /* M, DDR */ 907 { .shift = 16, .pow = 1, }, /* P, other */ 1063 flags = data->div[i].pow ? CLK_DIVIDER_POWER_OF_TWO : 0; in sunxi_divs_clk_setup()
|
/openbmc/openbmc/poky/meta/recipes-devtools/flex/flex/ |
H A D | check-funcs.patch | 45 -pow dnl Used only by "examples/manual/expr" 57 +# pow - Used only by "examples/manual/expr". 61 +AC_CHECK_FUNCS([pow setlocale reallocarr reallocarray])
|
/openbmc/phosphor-pid-control/dbus/ |
H A D | dbuspassive.cpp | 106 _min = settings.min * std::pow(10.0, _scale); in DbusPassive() 107 _max = settings.max * std::pow(10.0, _scale); in DbusPassive() 271 value *= std::pow(10.0, _scale); in handleSensorValue()
|
H A D | dbusactiveread.cpp | 36 value = settings.value * pow(10, settings.scale); in read()
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | fsl_pci.c | 168 out_be32(&pci->pow[index + i].potar, pci_addr >> 12); in setup_one_atmu() 169 out_be32(&pci->pow[index + i].potear, (u64)pci_addr >> 44); in setup_one_atmu() 170 out_be32(&pci->pow[index + i].powbar, phys_addr >> 12); in setup_one_atmu() 171 out_be32(&pci->pow[index + i].powar, flags | (bits - 1)); in setup_one_atmu() 244 out_be32(&pci->pow[i].powar, 0); in setup_pci_atmu() 280 out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); in setup_pci_atmu() 281 out_be32(&pci->pow[j].potear, 0); in setup_pci_atmu() 282 out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12)); in setup_pci_atmu() 284 out_be32(&pci->pow[j].powar, 0x80088000 in setup_pci_atmu()
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | rt5677.txt | 20 - realtek,pow-ldo2-gpio : The GPIO that controls the CODEC's POW_LDO2 pin. 72 realtek,pow-ldo2-gpio =
|
/openbmc/linux/tools/power/cpupower/bench/ |
H A D | benchmark.h | 10 (void)(((int)(pow(rcnt, rcnt) * \
|
/openbmc/phosphor-hwmon/ |
H A D | thresholds.hpp | 138 auto lo = stod(tLo) * std::pow(10, scale); in addThreshold() 156 auto hi = stod(tHi) * std::pow(10, scale); in addThreshold()
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_sdr.c | 198 (b * pow(10, k1))) * pow(10, k2)); in sdr_convert_sensor_reading() 206 (b * pow(10, k1))) * pow(10, k2)); in sdr_convert_sensor_reading() 227 result = pow(10.0, result); in sdr_convert_sensor_reading() 230 result = pow(2.0, result); in sdr_convert_sensor_reading() 233 result = pow(result, -1.0); /*1/x w/o exception */ in sdr_convert_sensor_reading() 236 result = pow(result, 2.0); in sdr_convert_sensor_reading() 239 result = pow(result, 3.0); in sdr_convert_sensor_reading() 278 result = (double) (((m * val)) * pow(10, k2)); in sdr_convert_sensor_hysterisis() 285 result = (double) (((m * (int8_t) val) ) * pow(10, k2)); in sdr_convert_sensor_hysterisis() 306 result = pow(10.0, result); in sdr_convert_sensor_hysterisis() [all …]
|
/openbmc/linux/lib/crypto/mpi/ |
H A D | Makefile | 29 mpi-pow.o \
|
/openbmc/qemu/libdecnumber/dpd/ |
H A D | decimal64.c | 759 uInt const *pow; /* work */ in decDigitsFromDPD() local 842 for (pow=&DECPOWERS[4]; *last>=*pow; pow++) dn->digits++;
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensordatahandler.hpp | 245 std::pow(10, sensorInfo.scale - sensorInfo.exponentR); in readingData() 437 std::pow(10, sensorInfo.scale - sensorInfo.exponentR); in readingData() 544 raw_value *= std::pow(10, sensorInfo.exponentR - sensorInfo.scale); in readingData()
|