| /openbmc/phosphor-power/phosphor-regulators/test/ |
| H A D | pmbus_utils_tests.cpp | 200 int8_t exponent; in TEST() local 204 exponent = 2; in TEST() 205 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 4); in TEST() 209 exponent = 0; in TEST() 210 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 15); in TEST() 214 exponent = -3; in TEST() 215 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), in TEST() 220 exponent = 10; in TEST() 221 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromVoutLinear(value, exponent), 0); in TEST() 227 int8_t exponent; in TEST() local [all …]
|
| H A D | sensor_monitoring_tests.cpp | 135 std::optional<int8_t> exponent{}; in TEST() local 138 exponent); in TEST() 211 std::optional<int8_t> exponent{}; in TEST() local 214 exponent); in TEST() 253 std::optional<int8_t> exponent{}; in TEST() local 256 exponent); in TEST()
|
| /openbmc/phosphor-power/phosphor-regulators/test/actions/ |
| H A D | pmbus_write_vout_command_action_tests.cpp | 53 std::optional<int8_t> exponent{-8}; in TEST() local 55 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() 73 std::optional<int8_t> exponent{}; in TEST() local 75 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() 91 std::optional<int8_t> exponent{}; in TEST() local 93 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() 141 std::optional<int8_t> exponent{-8}; in TEST() local 143 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() 186 std::optional<int8_t> exponent{}; in TEST() local 188 PMBusWriteVoutCommandAction action{volts, format, exponent, isVerified}; in TEST() [all …]
|
| H A D | pmbus_read_sensor_action_tests.cpp | 56 std::optional<int8_t> exponent{-8}; in TEST() local 57 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() 70 std::optional<int8_t> exponent{}; in TEST() local 71 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() 119 std::optional<int8_t> exponent{}; in TEST() local 120 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() 166 std::optional<int8_t> exponent{-8}; in TEST() local 167 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() 216 std::optional<int8_t> exponent{}; in TEST() local 217 PMBusReadSensorAction action{type, command, format, exponent}; in TEST() [all …]
|
| /openbmc/qemu/tests/tcg/i386/ |
| H A D | test-i386-fprem.c | 42 unsigned int exponent:15; member 52 unsigned int exponent:15; member 62 .ieee_nan.exponent = 0x7fff, 70 .ieee_nan.exponent = 0x7fff, 78 .ieee.exponent = 0x7fff, 85 .ieee.exponent = 0x7fff, 92 .ieee.exponent = 0, 99 .ieee.exponent = 1, 178 au.ieee.negative, au.ieee.exponent, au.ieee.one, in do_fprem() 182 bu.ieee.negative, bu.ieee.exponent, bu.ieee.one, in do_fprem() [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | pmbus_utils.hpp | 159 int8_t exponent = static_cast<int8_t>(exponentField); in convertFromLinear() local 163 double decimal = mantissa * std::pow(2.0, exponent); in convertFromLinear() 180 inline double convertFromVoutLinear(uint16_t value, int8_t exponent) in convertFromVoutLinear() argument 183 double decimal = value * std::pow(2.0, exponent); in convertFromVoutLinear() 205 inline uint16_t convertToVoutLinear(double volts, int8_t exponent) in convertToVoutLinear() argument 208 double mantissa = volts / std::pow(2.0, static_cast<double>(exponent)); in convertToVoutLinear()
|
| /openbmc/phosphor-power/phosphor-regulators/src/actions/ |
| H A D | pmbus_read_sensor_action.hpp | 71 std::optional<int8_t> exponent) : in PMBusReadSensorAction() argument 72 type{type}, command{command}, format{format}, exponent{exponent} in PMBusReadSensorAction() 119 return exponent; in getExponent() 185 const std::optional<int8_t> exponent{}; member in phosphor::power::regulators::PMBusReadSensorAction
|
| H A D | pmbus_write_vout_command_action.hpp | 92 std::optional<int8_t> exponent, bool isVerified) : in PMBusWriteVoutCommandAction() argument 93 volts{volts}, format{format}, exponent{exponent}, in PMBusWriteVoutCommandAction() 139 return exponent; in getExponent() 240 const std::optional<int8_t> exponent{}; member in phosphor::power::regulators::PMBusWriteVoutCommandAction
|
| H A D | pmbus_read_sensor_action.cpp | 87 if (exponent.has_value()) in toString() 89 ss << ", exponent: " << static_cast<int16_t>(exponent.value()); in toString() 101 if (exponent.has_value()) in getExponentValue() 103 return exponent.value(); in getExponentValue()
|
| H A D | pmbus_write_vout_command_action.cpp | 86 if (exponent.has_value()) in toString() 88 ss << ", exponent: " << static_cast<int16_t>(exponent.value()); in toString() 99 if (exponent.has_value()) in getExponentValue() 101 return exponent.value(); in getExponentValue()
|
| /openbmc/witherspoon-pfault-analysis/power-supply/ |
| H A D | record_manager.cpp | 162 int8_t exponent = (data & 0xF800) >> 11; in linearToInteger() local 167 if (exponent & 0x10) in linearToInteger() 169 exponent = (~exponent) & 0x1F; in linearToInteger() 170 exponent = (exponent + 1) * -1; in linearToInteger() 181 auto value = static_cast<float>(mantissa) * pow(2, exponent); in linearToInteger()
|
| /openbmc/phosphor-power/power-supply/ |
| H A D | record_manager.cpp | 165 int8_t exponent = (data & 0xF800) >> 11; in linearToInteger() local 170 if (exponent & 0x10) in linearToInteger() 172 exponent = (~exponent) & 0x1F; in linearToInteger() 173 exponent = (exponent + 1) * -1; in linearToInteger() 184 auto value = static_cast<float>(mantissa) * pow(2, exponent); in linearToInteger()
|
| /openbmc/qemu/libdecnumber/ |
| H A D | decNumber.c | 378 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32() 413 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32() 515 if (decNumberIsSpecial(dn) || (dn->exponent < 0) || in decNumberIntegralToInt64() 516 (dn->digits + dn->exponent > 19)) { in decNumberIntegralToInt64() 533 hi *= (uint64_t)powers[dn->exponent]; in decNumberIntegralToInt64() 564 if (decNumberIsSpecial(dn) || (dn->exponent < 0) || in decNumberIntegralToInt128() 565 (dn->digits + dn->exponent > 39)) { in decNumberIntegralToInt128() 584 if (mulUInt128ByPowOf10(&lo, &hi, dn->exponent)) { in decNumberIntegralToInt128() 654 Int exponent=0; /* working exponent [assume 0] */ in decNumberFromString() local 772 exponent=X10(exponent)+(Int)*c-(Int)'0'; in decNumberFromString() [all …]
|
| /openbmc/qemu/stats/ |
| H A D | stats-hmp-cmds.c | 21 value->has_unit || value->exponent ? ", " : ""); in print_stats_schema_value() 32 value->exponent >= -18 && value->exponent <= 18 && in print_stats_schema_value() 33 value->exponent % 3 == 0) { in print_stats_schema_value() 34 monitor_puts(mon, si_prefix(value->exponent)); in print_stats_schema_value() 36 value->exponent >= 0 && value->exponent <= 60 && in print_stats_schema_value() 37 value->exponent % 10 == 0) { in print_stats_schema_value() 39 monitor_puts(mon, iec_binary_prefix(value->exponent)); in print_stats_schema_value() 40 } else if (value->exponent) { in print_stats_schema_value() 43 value->base, value->exponent, in print_stats_schema_value()
|
| /openbmc/phosphor-power/phosphor-regulators/docs/config_file/ |
| H A D | pmbus_write_vout_command.md | 27 The linear data format requires an exponent value. 29 If the device supports the PMBus VOUT_MODE command, the exponent value can be 32 If VOUT_MODE is not supported by the device, the exponent value must be 33 specified using the "exponent" property. The exponent value can normally be 58 | exponent | no | number | Exponent value for linear data format. Can be … 71 "Get exponent from VOUT_MODE." 82 "Set output voltage. Explicitly specify volts and exponent.", 88 "exponent": -8,
|
| H A D | pmbus_read_sensor.md | 39 … Two byte value with an 11-bit, two's complement mantissa and a 5-bit, two's complement exponent. | 40 …yte (16-bit), unsigned integer that is raised to the power of an exponent. The exponent is not sto… 44 The "linear_16" data format requires an exponent value. 46 If the device supports the PMBus VOUT_MODE command, the exponent value can be 49 If VOUT_MODE is not supported by the device, the exponent value must be 50 specified using the "exponent" property. The exponent value can normally be 107 | exponent | no | number | Exponent value for "linear_16" data format. Can be positive or neg… 128 "comments": ["Read output voltage from READ_VOUT. Specify exponent."], 133 "exponent": -8
|
| /openbmc/u-boot/lib/rsa/ |
| H A D | rsa-mod-exp.c | 135 uint64_t exponent; in num_public_exponent_bits() local 137 const uint max_bits = (sizeof(exponent) * 8); in num_public_exponent_bits() 139 exponent = key->exponent; in num_public_exponent_bits() 142 if (!exponent) { in num_public_exponent_bits() 148 if (!(exponent >>= 1)) { in num_public_exponent_bits() 165 return key->exponent & (1ULL << pos); in is_public_exponent_bit_set() 263 key.exponent = RSA_DEFAULT_PUBEXP; in rsa_mod_exp_sw() 265 key.exponent = in rsa_mod_exp_sw()
|
| /openbmc/u-boot/arch/arm/mach-omap2/am33xx/ |
| H A D | clock_am33xx.c | 252 u32 exponent; in set_mpu_spreadspectrum() local 274 exponent = 0; in set_mpu_spreadspectrum() 276 while ((mantissa > 127) && (exponent < 7)) { in set_mpu_spreadspectrum() 277 exponent++; in set_mpu_spreadspectrum() 283 mod_freq_divider = mantissa << exponent; in set_mpu_spreadspectrum() 299 writel((exponent << 8) | mantissa, &cmwkup->sscmodfreqdivdpllmpu); in set_mpu_spreadspectrum()
|
| /openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/ |
| H A D | cr51_image_descriptor.h | 446 uint32_t exponent; // little-endian member 458 uint32_t exponent; // little-endian member 470 uint32_t exponent; // little-endian member
|
| H A D | libcr51sign_support.h | 100 int modulus_len, uint32_t exponent, const uint8_t* sig, int sig_len,
|
| /openbmc/qemu/qapi/ |
| H A D | stats.json | 216 # measured. Only present if @exponent is non-zero; @base and 217 # @exponent together form a SI prefix (e.g., _nano-_ for 218 # ``base=10`` and ``exponent=-9``) or IEC binary prefix (e.g. 219 # _kibi-_ for ``base=2`` and ``exponent=10``) 221 # @exponent: exponent for the multiple of @unit in which the statistic 234 'exponent': 'int16',
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
| H A D | adb_libssl_11.diff | 40 - pkey->exponent = BN_get_word(rsa->e); 41 + pkey->exponent = BN_get_word(e);
|
| /openbmc/qemu/libdecnumber/dpd/ |
| H A D | decimal32.c | 97 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber() 125 if (dn->exponent<-DECIMAL32_Bias) { in decimal32FromNumber() 130 exp=dn->exponent+DECIMAL32_Bias; /* bias exponent */ in decimal32FromNumber() 143 exp=(uInt)(dn->exponent+DECIMAL32_Bias); /* bias exponent */ in decimal32FromNumber() 217 dn->exponent=(exp<<6)+((sour>>20)&0x3f)-DECIMAL32_Bias; /* unbiased */ in decimal32ToNumber()
|
| H A D | decimal128.c | 101 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal128FromNumber() 129 if (dn->exponent<-DECIMAL128_Bias) { in decimal128FromNumber() 134 exp=dn->exponent+DECIMAL128_Bias; /* bias exponent */ in decimal128FromNumber() 147 exp=(uInt)(dn->exponent+DECIMAL128_Bias); /* bias exponent */ in decimal128FromNumber() 241 dn->exponent=(exp<<12)+((sourhi>>14)&0xfff)-DECIMAL128_Bias; /* unbiased */ in decimal128ToNumber()
|
| /openbmc/qemu/target/ppc/ |
| H A D | dfp_helper.c | 579 is_extreme_exp = (dfp.a.exponent == maxexp) || \ 580 (dfp.a.exponent == minexp); \ 618 expa = dfp.a.exponent; \ 619 expb = dfp.b.exponent; \ 748 dfp.a.exponent = (int32_t)((int8_t)(te << 3) >> 3); \ 796 dfp->a.exponent = dfp->b.exponent + dfp->b.digits - ref_sig; in _dfp_reround() 798 if (unlikely(dfp->a.exponent > xmax)) { in _dfp_reround() 820 dfp->t.exponent++; in _dfp_reround() 822 if (unlikely(dfp->t.exponent > xmax)) { in _dfp_reround() 1251 vt.VsrD(1) = dfp.b.exponent + 398; \ [all …]
|