/openbmc/linux/arch/parisc/math-emu/ |
H A D | cnv_float.h | 47 ((exponent < (SGL_P - 1)) ? \ 77 (exponent < (SGL_P - 2) ? \ 181 (exponent < (DBL_P-1) ? Dallp2(dbl_valueB) << (exponent + (33-DBL_P)) : \ 196 (exponent<(DBL_P-2) ? (Dallp2(dbl_valueB) << (exponent + (34-DBL_P))) : \ 208 if (exponent < 31) Dallp1(dbl_valueA) >>= 30 - exponent; \ 218 if (exponent <= 31) { \ 229 {if (exponent < 32) { \ 231 if (exponent <= 20) \ 237 if (exponent <= 52) { \ 338 if (exponent <= 31) { \ [all …]
|
H A D | denormal.c | 47 int sign, exponent; in sgl_denormalize() local 52 exponent = Sgl_exponent(opnd) - SGL_WRAP; in sgl_denormalize() 54 Sgl_denormalize(opnd,exponent,guardbit,stickybit,inexact); in sgl_denormalize() 88 int sign, exponent; in dbl_denormalize() local 94 exponent = Dbl_exponent(opndp1) - DBL_WRAP; in dbl_denormalize() 96 Dbl_denormalize(opndp1,opndp2,exponent,guardbit,stickybit,inexact); in dbl_denormalize()
|
H A D | sgl_float.h | 252 exponent -= 8; \ 256 exponent -= 4; \ 260 exponent -= 1; \ 291 if (exponent >= (1 - SGL_P)) { \ 293 if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \ 295 Sall(opnd) >>= (1-exponent); \ 447 if (exponent >= (1-DBL_P)) { \ 448 if (exponent >= -31) { \ 449 if (exponent > -31) { \ 452 Sextallp1(opndp1) >>= 1-exponent; \ [all …]
|
/openbmc/linux/arch/x86/math-emu/ |
H A D | poly_atan.c | 56 int exponent; in poly_atan() local 64 exponent = exponent(st0_ptr); in poly_atan() 71 exponent -= exponent(st1_ptr); in poly_atan() 78 if ((exponent < 0) || ((exponent == 0) && in poly_atan() 88 exponent = -exponent; in poly_atan() 96 if ((exponent >= -1) in poly_atan() 102 if (exponent >= 0) { in poly_atan() 116 if (exponent < -1) in poly_atan() 179 exponent = -1; in poly_atan() 187 exponent = 0; in poly_atan() [all …]
|
H A D | poly_2xm1.c | 55 long int exponent, shift; in poly_2xm1() local 60 exponent = exponent16(arg); in poly_2xm1() 73 if (exponent == -1) { in poly_2xm1() 76 exponent -= 2; in poly_2xm1() 79 } else if (exponent == -2) { in poly_2xm1() 82 exponent--; in poly_2xm1() 88 if (exponent < -2) { in poly_2xm1() 110 exponent = 1; in poly_2xm1() 119 if (exponent < 0) in poly_2xm1() 120 shr_Xsig(&Denom, -exponent); in poly_2xm1() [all …]
|
H A D | poly_l2.c | 42 exponent++; in poly_l2() 60 if (exponent < 0) { in poly_l2() 62 exponent = -exponent; in poly_l2() 65 expon_accum.msw = exponent; in poly_l2() 67 if (exponent) { in poly_l2() 110 long int exponent; in poly_l2p1() local 124 exponent = EXP_WAY_UNDER; in poly_l2p1() 185 long int exponent, adj; in log2_kernel() local 201 exponent++; in log2_kernel() 212 if (exponent >= -2) { in log2_kernel() [all …]
|
H A D | poly_sin.c | 60 int exponent, echange; in poly_sine() local 66 exponent = exponent(st0_ptr); in poly_sine() 72 if ((exponent < -1) in poly_sine() 102 exponent = 3 * exponent; in poly_sine() 105 shr_Xsig(&accumulator, exponent(st0_ptr) - exponent); in poly_sine() 119 if (exponent == 0) { in poly_sine() 218 exponent = exponent(st0_ptr); in poly_cos() 222 if ((exponent < -1) in poly_cos() 292 exponent = -1; in poly_cos() 299 exponent -= 16; in poly_cos() [all …]
|
H A D | poly_tan.c | 53 long int exponent; in poly_tan() local 59 exponent = exponent(st0_ptr); in poly_tan() 69 if ((exponent == 0) in poly_tan() 76 if (exponent == 0) { in poly_tan() 94 exponent = -1 + norm_Xsig(&argSignif); in poly_tan() 100 if (exponent < -1) { in poly_tan() 177 if (exponent == 0) in poly_tan() 180 else if (exponent > -30) { in poly_tan() 192 shr_Xsig(&fix_up, 64 + exponent); in poly_tan() 194 shr_Xsig(&fix_up, 65 + exponent); in poly_tan() [all …]
|
H A D | fpu_trig.c | 42 if (exponent(st0_ptr) >= 63) { in trig_arg() 61 q, exponent(st0_ptr) - exponent(&CONST_PI2)); in trig_arg() 77 if ((exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64) in trig_arg() 89 exponent(&tmp)); in trig_arg() 110 && (exponent(st0_ptr) <= exponent(&CONST_PI2extra) + 64)) in trig_arg() 122 exponent(&tmp)); in trig_arg() 126 if ((exponent(st0_ptr) == exponent(&CONST_PI2)) && in trig_arg() 1051 exponent.sigh = e; in fyl2x() 1054 exponent.sigh = -e; in fyl2x() 1057 exponent.sigl = 0; in fyl2x() [all …]
|
/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() 209 exponent = 0; in TEST() 214 exponent = -3; in TEST() 220 exponent = 10; in TEST() 231 exponent = 2; in TEST() 237 exponent = 2; in TEST() 243 exponent = 0; in TEST() 249 exponent = 0; in TEST() 255 exponent = -8; in TEST() [all …]
|
/openbmc/linux/arch/arm/vfp/ |
H A D | vfpsingle.c | 94 exponent = vs->exponent; in __vfp_single_normaliseround() 109 vs->exponent = exponent; in __vfp_single_normaliseround() 122 vs->exponent = exponent; in __vfp_single_normaliseround() 155 vs->exponent = exponent; in __vfp_single_normaliseround() 192 vs->exponent = exponent; in __vfp_single_normaliseround() 788 if (vsn->exponent < vsm->exponent) { in vfp_single_add() 811 exp_diff = vsn->exponent - vsm->exponent; in vfp_single_add() 845 if (vsn->exponent < vsm->exponent) { in vfp_single_multiply() 864 vsd->exponent = vsn->exponent; in vfp_single_multiply() 884 vsd->exponent = vsn->exponent + vsm->exponent - 127 + 2; in vfp_single_multiply() [all …]
|
H A D | vfpdouble.c | 92 exponent = vd->exponent; in vfp_double_normaliseround() 104 vd->exponent = exponent; in vfp_double_normaliseround() 117 vd->exponent = exponent; in vfp_double_normaliseround() 150 vd->exponent = exponent; in vfp_double_normaliseround() 187 vd->exponent = exponent; in vfp_double_normaliseround() 743 if (vdn->exponent < vdm->exponent) { in vfp_double_add() 766 exp_diff = vdn->exponent - vdm->exponent; in vfp_double_add() 801 if (vdn->exponent < vdm->exponent) { in vfp_double_multiply() 820 vdd->exponent = vdn->exponent; in vfp_double_multiply() 840 vdd->exponent = vdn->exponent + vdm->exponent - 1023 + 2; in vfp_double_multiply() [all …]
|
H A D | vfp.h | 150 s16 exponent; member 193 s->exponent = vfp_single_packed_exponent(val); in vfp_single_unpack() 197 if (s->exponent && s->exponent != 255) in vfp_single_unpack() 210 (s->exponent << VFP_SINGLE_MANTISSA_BITS) + in vfp_single_pack() 228 if (s->exponent == 255) { in vfp_single_type() 235 } else if (s->exponent == 0) { in vfp_single_type() 255 s16 exponent; member 302 s->exponent = vfp_double_packed_exponent(val); in vfp_double_unpack() 306 if (s->exponent && s->exponent != 2047) in vfp_double_unpack() 327 if (s->exponent == 2047) { in vfp_double_type() [all …]
|
/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 73 std::optional<int8_t> exponent{}; in TEST() local 91 std::optional<int8_t> exponent{}; in TEST() local 141 std::optional<int8_t> exponent{-8}; in TEST() local 186 std::optional<int8_t> exponent{}; in TEST() local 279 std::optional<int8_t> exponent{}; in TEST() local 339 std::optional<int8_t> exponent{}; in TEST() local 588 std::optional<int8_t> exponent{}; in TEST() local 598 std::optional<int8_t> exponent{}; in TEST() local 607 std::optional<int8_t> exponent{-8}; in TEST() local [all …]
|
H A D | pmbus_read_sensor_action_tests.cpp | 56 std::optional<int8_t> exponent{-8}; in TEST() local 70 std::optional<int8_t> exponent{}; in TEST() local 119 std::optional<int8_t> exponent{}; in TEST() local 216 std::optional<int8_t> exponent{}; in TEST() local 237 std::optional<int8_t> exponent{}; in TEST() local 280 std::optional<int8_t> exponent{}; in TEST() local 344 std::optional<int8_t> exponent{}; in TEST() local 403 std::optional<int8_t> exponent{}; in TEST() local 509 std::optional<int8_t> exponent{}; in TEST() local 541 std::optional<int8_t> exponent{}; in TEST() local [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, 306 INIT_FIELD(a, exponent), in test_fprem_pairs() 335 CARRY_INTO(b, exponent); in test_fprem_pairs() [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/qemu/libdecnumber/ |
H A D | decNumber.c | 857 dn->exponent=exponent; in decNumberFromString() 3513 dest->exponent=src->exponent; in decNumberCopy() 4495 exponent=lhs->exponent-rhs->exponent; /* ideal exponent */ in decDivideOp() 4508 if (exponent<res->exponent) res->exponent=exponent; /* use lower */ in decDivideOp() 4835 postshift=var1initpad+exponent-lhs->exponent+rhs->exponent; in decDivideOp() 4846 if (rhs->exponent<exponent) exponent=rhs->exponent; in decDivideOp() 4865 rhs->exponent-exponent); in decDivideOp() 4924 res->exponent=exponent; in decDivideOp() 5273 if (lhs->exponent<0 && rhs->exponent<0 && exponent>0) in decMultiplyOp() 6359 rhs->exponent-lhs->exponent); [all …]
|
/openbmc/phosphor-power/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/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/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
|
/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
|