Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 25 of 113) sorted by relevance

12345

/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dfp_fixuint_impl.inc17 // 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 Dfp_fixint_impl.inc19 // 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 Dfloatunsisf.c29 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 Dfloatunsitf.c28 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 Dfloatunditf.c28 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 Dfloatunsidf.c29 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 Dfloatditf.c36 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 Dfp_add_impl.inc67 // 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 Dfp_mul_impl.inc66 // 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.
/freebsd/contrib/arm-optimized-routines/math/
H A Dtgamma128.c189 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()
/freebsd/contrib/arm-optimized-routines/math/test/rtest/
H A Dsemi.c618 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 …]
/freebsd/contrib/arm-optimized-routines/math/tools/
H A Dtgamma128_gen.jl30 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)
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp458 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 …]
/freebsd/contrib/ntp/libparse/
H A Dieee754io.c175 long exponent; in fetch_ieee754()
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()
484 exponent = mantissa_high = mantissa_low = 0; /* true zero */ in put_ieee754()
543 exponent = msb - 32; in main()
544 characteristic = exponent + bias; in main()
177 long exponent; fetch_ieee754() local
420 long exponent; put_ieee754() local
/freebsd/contrib/ntp/libntp/
H A Dsnprintf.c90 * requires libm on most operating systems. Don't yet support the exponent
1106 int exponent = 0; in fmtflt() local
1158 * and on the exponent. However, the exponent can be in fmtflt()
1162 * (in order to get the exponent calculated). For in fmtflt()
1174 exponent = getexponent(fvalue); in fmtflt()
1201 ufvalue /= mypow10(exponent); in fmtflt()
1230 * part must be set to one and the exponent must be in fmtflt()
1234 exponent++; in fmtflt()
1239 * Now that we know the real exponent, w in fmtflt()
1417 int exponent = 0; getexponent() local
1482 mypow10(int exponent) mypow10() argument
[all...]
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A Dltc2941.txt16 - lltc,prescaler-exponent: The prescaler exponent as explained in the datasheet.
27 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
/freebsd/contrib/wpa/wpa_supplicant/
H A Dtwt.c29 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()
/freebsd/usr.bin/dc/
H A Dinout.c224 BIGNUM *base_n, *exponent; in readnumber() local
229 exponent = BN_new(); in readnumber()
232 BN_zero(exponent); in readnumber()
235 bn_check(BN_add_word(exponent, iscale)); in readnumber()
236 bn_check(BN_exp(divisor->number, base_n, exponent, ctx)); in readnumber()
255 BN_free(exponent); in readnumber()
/freebsd/lib/libc/resolv/
H A Dres_debug.c756 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()
/freebsd/stand/ficl/
H A Dfloat.c841 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()
/freebsd/crypto/openssl/crypto/bn/
H A Drsaz_exp.h30 const BN_ULONG exponent[16],
36 const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
H A Drsaz_exp.c58 const BN_ULONG exponent[16],
210 p_str = (unsigned char *)exponent;
263 const BN_ULONG base[8], const BN_ULONG exponent[8],
270 unsigned char *p_str = (unsigned char *)exponent;
/freebsd/contrib/bc/manuals/
H A Dalgorithms.md199 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 …]
/freebsd/contrib/unbound/sldns/
H A Dkeyraw.c422 BIGNUM* exponent = NULL; in sldns_key_buf2rsa_raw() local
424 if(!sldns_key_rsa_buf_bignum(key, len, &modulus, &exponent)) in sldns_key_buf2rsa_raw()
428 BN_free(exponent); in sldns_key_buf2rsa_raw()
436 rsa->e = exponent; in sldns_key_buf2rsa_raw()
440 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in sldns_key_buf2rsa_raw()
441 BN_free(exponent); in sldns_key_buf2rsa_raw()
/freebsd/crypto/openssh/
H A Dssh-ecdsa.c204 BIGNUM *exponent = NULL; in ssh_ecdsa_deserialize_private() local
210 if ((r = sshbuf_get_bignum2(b, &exponent)) != 0) in ssh_ecdsa_deserialize_private()
212 if (EC_KEY_set_private_key(key->ecdsa, exponent) != 1) { in ssh_ecdsa_deserialize_private()
221 BN_clear_free(exponent); in ssh_ecdsa_deserialize_private()

12345