/openbmc/libpldm/include/libpldm/ |
H A D | utils.h | 53 /** @brief Convert bcd number(uint8_t) to decimal 55 * @return the decimal number 59 /** @brief Convert decimal number(uint8_t) to bcd 60 * @param[in] dec - decimal number 65 /** @brief Convert bcd number(uint16_t) to decimal 67 * @return the decimal number 71 /** @brief Convert decimal number(uint16_t) to bcd 72 * @param[in] dec - decimal number 77 /** @brief Convert bcd number(uint32_t) to decimal 79 * @return the decimal number [all …]
|
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/csdl/ |
H A D | OpenBMCManager_v1.xml | 125 <Property Name="FFGainCoefficient" Type="Edm.Decimal" Nullable="false"> 130 <Property Name="FFOffCoefficient" Type="Edm.Decimal" Nullable="false"> 135 <Property Name="ICoefficient" Type="Edm.Decimal" Nullable="false"> 140 <Property Name="ILimitMax" Type="Edm.Decimal" Nullable="false"> 145 <Property Name="ILimitMin" Type="Edm.Decimal" Nullable="false"> 155 <Property Name="OutLimitMax" Type="Edm.Decimal" Nullable="false"> 160 <Property Name="OutLimitMin" Type="Edm.Decimal" Nullable="false"> 165 <Property Name="NegativeHysteresis" Type="Edm.Decimal" Nullable="false"> 170 <Property Name="PositiveHysteresis" Type="Edm.Decimal" Nullable="false"> 180 <Property Name="PCoefficient" Type="Edm.Decimal" Nullable="false"> [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | pmbus_utils_tests.cpp | 151 // mantissa : 511, exponent : -16, decimal = 511 * 2^-16 = in TEST() 157 // mantissa : 2, exponent : 15, decimal = 2 * 2^15 = 65536 in TEST() 162 // mantissa : -1024, exponent : 1, decimal = -1024 * 2^1 = -2048 in TEST() 167 // mantissa : 1023, exponent : -11, decimal = 1023 * 2^-11 = 0.49951171875 in TEST() 172 // mantissa : 1, exponent : 0, decimal = 1 * 2^0 = 1 in TEST() 177 // mantissa : 2, exponent : 1, decimal = 2 * 2^1 = 4 in TEST() 182 // mantissa : 15, exponent : -1, decimal = 15 * 2^-1 = 7.5 in TEST() 187 // mantissa : 0, exponent : 3, decimal = 0 * 2^3 = 0 in TEST() 192 // mantissa : -2, exponent : 3, decimal = -2 * 2^3 = -16 in TEST() 202 // mantissa : 1, exponent : 2, decimal = 1 * 2^2 = 4 in TEST() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | slot-hsc-fault | 4 local decimal=$1 8 while [ "$decimal" -gt 0 ]; do 9 remainder=$((decimal % 16)) 11 decimal=$((decimal / 16))
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | bcd_time.hpp | 79 T toBCD(T decimal) in toBCD() argument 85 while (decimal) in toBCD() 87 remainder = decimal % 10; in toBCD() 89 decimal = decimal / 10; in toBCD() 97 * @brief Converts a BCD byte to a decimal number. 102 * @return int - The number in decimal
|
/openbmc/linux/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 32 from decimal import * 221 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) 229 duration_ms = Decimal(duration_us) / Decimal(1000) 232 … elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time 233 load = Decimal(int(mperf)*100)/ Decimal(tsc) 234 freq_ghz = Decimal(freq)/Decimal(1000000)
|
/openbmc/linux/drivers/hwmon/ |
H A D | sbtsi_temp.c | 21 * corresponding decimal parts. 47 * the "low byte" encode in base-2 the decimal portion. 54 static inline int sbtsi_reg_to_mc(s32 integer, s32 decimal) in sbtsi_reg_to_mc() argument 56 return ((integer << 3) + (decimal >> 5)) * 125; in sbtsi_reg_to_mc() 65 static inline void sbtsi_mc_to_reg(s32 temp, u8 *integer, u8 *decimal) in sbtsi_mc_to_reg() argument 69 *decimal = (temp & 0x7) << 5; in sbtsi_mc_to_reg() 83 * decimal part of CPU temp for atomic reads. If bit == 0, in sbtsi_read() 84 * reading integer part triggers latching of the decimal part, in sbtsi_read()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | ima_policy | 43 uid:= decimal value 44 euid:= decimal value 45 gid:= decimal value 46 egid:= decimal value 47 fowner:= decimal value 48 fgroup:= decimal value 71 pcr:= decimal value
|
H A D | sysfs-class-cxl | 24 Decimal value of maximum number of interrupts that can be 35 Decimal value of the minimum number of interrupts that 45 Decimal value of the size of the MMIO space that may be mmapped 99 Decimal value of the current version of the kernel/user API. 106 Decimal value of the lowest version of the userspace API 158 Decimal value of the size of the MMIO space that may be mmapped 166 Decimal value of the Per Process MMIO space length. 174 Decimal value of the Per Process MMIO space offset.
|
H A D | sysfs-bus-usb-devices-usbsevseg | 41 Description: Controls the decimal places on the device. 42 To set the nth decimal place, give this field 44 the value k and has 1 or more decimal places set,
|
H A D | sysfs-secvar | 68 Description: Config version as reported by the hypervisor in ASCII decimal 77 represented in ASCII decimal format. 89 Description: Total size of the PLPKS in bytes, represented in ASCII decimal 98 in ASCII decimal format.
|
/openbmc/linux/tools/perf/scripts/python/ |
H A D | task-analyzer.py | 17 import decimal 426 # The size of the decimal after sum,mean and median varies, thus we cut 427 # the decimal number, by rounding it. It has no impact on the output, 428 # because we have a precision of the decimal points at the output. 554 return self._time_out * decimal.Decimal(factor) 559 return self._time_in * decimal.Decimal(factor) 563 return (self._time_out - self._time_in) * decimal.Decimal(factor) 772 To prevent float rounding errors we use Decimal internally 774 return decimal.Decimal(time_ns) / decimal.Decimal(1e9) 872 if time >= decimal.Decimal(lower_time_limit): [all …]
|
/openbmc/linux/Documentation/ABI/stable/ |
H A D | sysfs-devices-system-cpu | 72 Values: decimal list. 83 Values: decimal list. 96 Values: decimal list. 105 Values: decimal list. 116 Values: decimal list. 127 Values: decimal list.
|
/openbmc/linux/Documentation/usb/ |
H A D | misc_usbsevseg.rst | 45 5. Set the decimal places. 46 The device has either 6 or 8 decimal points. 47 to set the nth decimal place calculate 10 ** n 50 For example, to set the 0th and 3rd decimal place
|
/openbmc/linux/tools/power/x86/intel_pstate_tracer/ |
H A D | intel_pstate_tracer.py | 37 from decimal import * 461 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) 469 duration_ms = Decimal(duration_us) / Decimal(1000) 472 … elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time 473 load = Decimal(int(mperf)*100)/ Decimal(tsc) 474 freq_ghz = Decimal(freq)/Decimal(1000000) 477 tsc_ghz = Decimal(0) 478 if duration_ms != Decimal(0) : 479 tsc_ghz = Decimal(tsc)/duration_ms/Decimal(1000000)
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utstrtoul64.c | 68 * integer width. Supports Decimal, Hex, and Octal strings. 84 u32 base = 10; /* Default is decimal */ in acpi_ut_strtoul64() 170 * Base is always 16, either with or without the 0x prefix. Decimal and 247 * main restriction is that only hex and decimal are supported. 255 * to_integer ("1000") Decimal 260 * 1) The input string is either a decimal or hexadecimal numeric string. 261 * A hex value must be prefixed by "0x" or it is interpreted as decimal. 290 u32 base = 10; /* Default is decimal */ in acpi_ut_explicit_strtoul64() 299 * Only Hex and Decimal are supported, as per the ACPI specification. in acpi_ut_explicit_strtoul64() 300 * A "0x" prefix indicates hex; otherwise decimal is assumed. in acpi_ut_explicit_strtoul64()
|
/openbmc/linux/arch/alpha/include/uapi/asm/ |
H A D | gentrap.h | 17 #define GEN_DECOVF -8 /* decimal overflow (for COBOL??) */ 18 #define GEN_DECDIV -9 /* decimal division by zero */ 19 #define GEN_DECINV -10 /* invalid decimal operand */
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | pmbus_utils.hpp | 163 double decimal = mantissa * std::pow(2.0, exponent); in convertFromLinear() local 164 return decimal; in convertFromLinear() 178 * @return normal decimal number 183 double decimal = value * std::pow(2.0, exponent); in convertFromVoutLinear() local 184 return decimal; in convertFromVoutLinear()
|
/openbmc/bmcweb/redfish-core/include/generated/enums/ |
H A D | metric_definition.hpp | 30 Decimal, enumerator 73 {MetricDataType::Decimal, "Decimal"},
|
/openbmc/qemu/include/libdecnumber/dpd/ |
H A D | decimal128.h | 1 /* Decimal 128-bit format module header for the decNumber C Library. 32 /* Decimal 128-bit format module header */ 39 #define DEC128FULLNAME "Decimal 128-bit Number" /* Verbose name */ 65 /* Decimal 128-bit type, accessible by bytes */
|
H A D | decimal64.h | 1 /* Decimal 64-bit format module header for the decNumber C Library. 32 /* Decimal 64-bit format module header */ 39 #define DEC64FULLNAME "Decimal 64-bit Number" /* Verbose name */ 67 /* Decimal 64-bit type, accessible by bytes */
|
H A D | decimal32.h | 1 /* Decimal 32-bit format module header for the decNumber C Library. 32 /* Decimal 32-bit format module header */ 39 #define DEC32FULLNAME "Decimal 32-bit Number" /* Verbose name */ 65 /* Decimal 32-bit type, accessible by bytes */
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/bitwise/files/ |
H A D | ptest.out.expected | 1 Unsigned decimal: 66 2 Signed decimal: 66
|
/openbmc/qemu/linux-user/alpha/ |
H A D | target_signal.h | 74 #define TARGET_GEN_DECOVF -8 /* decimal overflow (for COBOL??) */ 75 #define TARGET_GEN_DECDIV -9 /* decimal division by zero */ 76 #define TARGET_GEN_DECINV -10 /* invalid decimal operand */
|
/openbmc/u-boot/include/ |
H A D | inttypes.h | 44 /* Decimal notation. */ 157 /* Signed decimal notation. */ 173 /* Signed decimal notation. */ 189 /* Unsigned decimal notation. */
|