| /src/contrib/llvm-project/compiler-rt/lib/builtins/ |
| H A D | fp_fixint_impl.inc | 19 // Break a into sign, exponent, significand parts. 23 const int exponent = (aAbs >> significandBits) - exponentBias; 26 // If exponent is negative, the result is zero. 27 if (exponent < 0) 31 if ((unsigned)exponent >= sizeof(fixint_t) * CHAR_BIT) 34 // If 0 <= exponent < significandBits, right shift to get the result. 36 if (exponent < significandBits) 37 return (fixint_t)(sign * (significand >> (significandBits - exponent))); 39 return (fixint_t)(sign * ((fixuint_t)significand << (exponent - significandBits)));
|
| H A D | fp_fixuint_impl.inc | 17 // Break a into sign, exponent, significand parts. 21 const int exponent = (aAbs >> significandBits) - exponentBias; 24 // If either the value or the exponent is negative, the result is zero. 25 if (sign == -1 || exponent < 0) 29 if ((unsigned)exponent >= sizeof(fixuint_t) * CHAR_BIT) 32 // If 0 <= exponent < significandBits, right shift to get the result. 34 if (exponent < significandBits) 35 return significand >> (significandBits - exponent); 37 return (fixuint_t)significand << (exponent - significandBits);
|
| H A D | floatunsisf.c | 29 const int exponent = (aWidth - 1) - clzsi(a); in __floatunsisf() local 33 if (exponent <= significandBits) { in __floatunsisf() 34 const int shift = significandBits - exponent; in __floatunsisf() 37 const int shift = exponent - significandBits; in __floatunsisf() 47 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsisf()
|
| H A D | floatsisf.c | 37 const int exponent = (aWidth - 1) - clzsi(aAbs); in __floatsisf() local 41 if (exponent <= significandBits) { in __floatsisf() 42 const int shift = significandBits - exponent; in __floatsisf() 45 const int shift = exponent - significandBits; in __floatsisf() 55 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsisf()
|
| H A D | floatunditf.c | 28 const int exponent = (aWidth - 1) - __builtin_clzll(a); in __floatunditf() local 32 const int shift = significandBits - exponent; in __floatunditf() 36 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunditf()
|
| H A D | floatunsitf.c | 28 const int exponent = (aWidth - 1) - clzsi(a); in __floatunsitf() local 32 const int shift = significandBits - exponent; in __floatunsitf() 36 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsitf()
|
| H A D | floatsitf.c | 36 const int exponent = (aWidth - 1) - clzsi(aAbs); in __floatsitf() local 40 const int shift = significandBits - exponent; in __floatsitf() 44 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsitf()
|
| H A D | floatunsidf.c | 29 const int exponent = (aWidth - 1) - clzsi(a); in __floatunsidf() local 33 const int shift = significandBits - exponent; in __floatunsidf() 37 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsidf()
|
| H A D | floatditf.c | 36 const int exponent = (aWidth - 1) - __builtin_clzll(aAbs); in __floatditf() local 40 const int shift = significandBits - exponent; in __floatditf() 44 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatditf()
|
| H A D | floatsidf.c | 37 const int exponent = (aWidth - 1) - clzsi(aAbs); in __floatsidf() local 43 const int shift = significandBits - exponent; in __floatsidf() 47 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsidf()
|
| H A D | fp_add_impl.inc | 67 // Extract the exponent and significand from the (possibly swapped) a and b. 73 // Normalize any denormals, and adjust the exponent accordingly. 110 // and adjust the exponent. 120 // adjust the exponent. 133 // The result is denormal before rounding. The exponent is zero and we 147 // Insert the exponent and sign.
|
| H A D | fp_trunc_impl.inc | 76 // The significand can be truncated and the exponent can be copied over. 87 // The exponent of a is within the range of normal numbers in the 89 // rounding and adjusting the exponent. 101 // Rounding has changed the exponent. 118 // zero. The result may be a denormal or zero. Extract the exponent 146 // Rounding has changed the exponent.
|
| H A D | fp_mul_impl.inc | 66 // include the necessary exponent adjustment. 80 // shifted beforehand to be aligned with the exponent. 87 // Normalize the significand and adjust the exponent if needed. 112 // The result is normal before rounding. Insert the exponent.
|
| /src/contrib/arm-optimized-routines/math/ |
| H A D | tgamma128.c | 189 int exponent; in tgamma128() local 202 exponent = -16384; in tgamma128() 205 frexpl(x, &exponent); in tgamma128() 206 exponent--; in tgamma128() 274 if (exponent >= 11) { in tgamma128() 286 } else if (exponent >= 3) { in tgamma128() 289 } else if (exponent < -113) { in tgamma128() 292 } else if (exponent < -5) { in tgamma128() 295 } else if (exponent == 0) { in tgamma128() 297 } else if (exponent < 0) { in tgamma128()
|
| /src/contrib/arm-optimized-routines/math/test/rtest/ |
| H A D | semi.c | 618 int exponent = x[0] & 0x7f800000; in test_isnanf() local 620 if ((exponent == 0x7f800000) && (fraction != 0)) out[0] = 1; in test_isnanf() 628 int exponent = x[0] & 0x7ff00000; in test_isnan() local 630 if ((exponent == 0x7ff00000) && ((fractionhigh != 0) || x[1] != 0)) in test_isnan() 639 int exponent = x[0] & 0x7f800000; in test_isnormalf() local 640 if (exponent == 0x7f800000) out[0] = 0; in test_isnormalf() 641 else if (exponent == 0) out[0] = 0; in test_isnormalf() 649 int exponent = x[0] & 0x7ff00000; in test_isnormal() local 650 if (exponent == 0x7ff00000) out[0] = 0; in test_isnormal() 651 else if (exponent == 0) out[0] = 0; in test_isnormal() [all …]
|
| /src/contrib/arm-optimized-routines/math/tools/ |
| H A D | tgamma128_gen.jl | 30 exponent = BigInt(floor(log2(x))) 31 exponent = max(exponent, -16382) 32 @assert(exponent <= 16383) # else overflow 34 x /= BigFloat(2)^exponent 41 exponent) 53 exponent = BigInt(floor(log2(x))) 54 exponent = max(exponent, -16382) 55 @assert(exponent <= 16383) # else overflow 57 x /= BigFloat(2)^exponent 68 return sign * mantissa * BigFloat(2)^(exponent - 112)
|
| /src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APFloat.cpp | 458 int exponent = 0; in totalExponent() local 490 exponent = unsignedExponent; in totalExponent() 492 exponent = -exponent; in totalExponent() 493 exponent += exponentAdjustment; in totalExponent() 494 if (exponent > 32767 || exponent < -32768) in totalExponent() 499 exponent = negative ? -32768: 32767; in totalExponent() 501 return exponent; in totalExponent() 541 int exponent; member 555 D->exponent = 0; in interpretDecimal() 582 D->exponent = *ExpOrErr; in interpretDecimal() [all …]
|
| /src/contrib/ntp/libparse/ |
| H A D | ieee754io.c | 175 long exponent; in fetch_ieee754() local 311 exponent = characteristic - bias; in fetch_ieee754() 313 if (exponent > 31) /* sorry - hardcoded */ in fetch_ieee754() 324 frac_offset = mbits - exponent; in fetch_ieee754() 433 long exponent; in put_ieee754() local 484 exponent = mantissa_high = mantissa_low = 0; /* true zero */ in put_ieee754() 543 exponent = msb - 32; in put_ieee754() 544 characteristic = exponent + bias; in put_ieee754()
|
| /src/contrib/ntp/libntp/ |
| H A D | snprintf.c | 1106 int exponent = 0; in fmtflt() local 1174 exponent = getexponent(fvalue); in fmtflt() 1201 ufvalue /= mypow10(exponent); in fmtflt() 1234 exponent++; in fmtflt() 1257 precision + 1 > exponent && exponent >= -4) { in fmtflt() 1258 precision -= exponent; in fmtflt() 1264 if (exponent < 0) { in fmtflt() 1265 exponent = -exponent; in fmtflt() 1276 epos = convert(exponent, econvert, 2, 10, 0); in fmtflt() 1417 int exponent = 0; in getexponent() local [all …]
|
| /src/sys/contrib/device-tree/Bindings/power/supply/ |
| H A D | ltc2941.txt | 16 - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet. 27 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
|
| /src/contrib/wpa/wpa_supplicant/ |
| H A D | twt.c | 29 int wpas_twt_send_setup(struct wpa_supplicant *wpa_s, u8 dtok, int exponent, in wpas_twt_send_setup() argument 56 dtok, exponent, mantissa, min_twt); in wpas_twt_send_setup() 78 req_type |= (exponent & 0x1f) << 10; /* TWT Wake Interval Exponent */ in wpas_twt_send_setup()
|
| /src/lib/libc/resolv/ |
| H A D | res_debug.c | 756 int mantissa, exponent; in precsize_ntoa() local 759 exponent = (int)((prec >> 0) & 0x0f) % 10; in precsize_ntoa() 761 val = mantissa * poweroften[exponent]; in precsize_ntoa() 773 int exponent; in precsize_aton() local 792 for (exponent = 0; exponent < 9; exponent++) in precsize_aton() 793 if (cmval < poweroften[exponent+1]) in precsize_aton() 796 mantissa = cmval / poweroften[exponent]; in precsize_aton() 800 retval = (mantissa << 4) | exponent; in precsize_aton()
|
| /src/stand/ficl/ |
| H A D | float.c | 841 FICL_INT exponent = 0; in ficlParseFloatNumber() local 950 exponent = exponent * 10 + digit; in ficlParseFloatNumber() 966 if (exponent != 0) in ficlParseFloatNumber() 971 exponent = -exponent; in ficlParseFloatNumber() 974 power = (float)pow(10.0, exponent); in ficlParseFloatNumber()
|
| /src/crypto/openssl/crypto/bn/ |
| H A D | rsaz_exp.h | 28 const BN_ULONG exponent[16], 34 const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
|
| /src/contrib/bc/manuals/ |
| H A D | algorithms.md | 199 First, check if the exponent is 0. If it is, return 1 at the appropriate 202 Next, check if the number is 0. If so, check if the exponent is greater than 203 zero; if it is, return 0. If the exponent is less than 0, error (with a divide 206 Next, check if the exponent is actually an integer, and if it is, use the 214 Then we check if the number is less than 0. If it is, we negate the exponent 215 (and the integer version of the exponent, which we calculated earlier to check 221 relationship `l(x) == -l(1/x)`; we negated the exponent, which is equivalent to 230 If at this point, the exponent is negative, we need to use the original formula 234 But if we did *not* return, we know the exponent is *not* negative, so we can 238 power of the integral portion of the exponent. [all …]
|