Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/builtins/
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 sign * (significand >> (significandBits - exponent));
39 return sign * ((fixint_t)significand << (exponent - significandBits));
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 Dfloatunsisf.c29 const int exponent = (aWidth - 1) - __builtin_clz(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 Dfloatsisf.c36 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatsisf() local
40 if (exponent <= significandBits) { in __floatsisf()
41 const int shift = significandBits - exponent; in __floatsisf()
44 const int shift = exponent - significandBits; in __floatsisf()
54 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsisf()
H A Dfloatunsitf.c28 const int exponent = (aWidth - 1) - __builtin_clz(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 Dfloatsitf.c36 const int exponent = (aWidth - 1) - __builtin_clz(aAbs); in __floatsitf() local
40 const int shift = significandBits - exponent; in __floatsitf()
44 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsitf()
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 Dfloatsidf.c36 const int exponent = (aWidth - 1) - clzsi(a); in __floatsidf() local
42 const int shift = significandBits - exponent; in __floatsidf()
46 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsidf()
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-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp338 exponent = -exponent; in totalExponent()
340 if (exponent > 32767 || exponent < -32768) in totalExponent()
746 exponent = rhs.exponent; in assign()
826 exponent = rhs.exponent; in operator =()
918 if (isFiniteNonZero() && exponent != rhs.exponent) in bitwiseIsEqual()
993 assert(exponent == rhs.exponent); in addSignificand()
1007 assert(exponent == rhs.exponent); in subtractSignificand()
1047 exponent += rhs.exponent; in multiplySignificand()
1180 exponent -= rhs.exponent; in divideSignificand()
1275 compare = exponent - rhs.exponent; in compareAbsoluteValue()
[all …]
/freebsd-13.1/contrib/ntp/libparse/
H A Dieee754io.c177 long exponent; in fetch_ieee754() local
313 exponent = characteristic - bias; in fetch_ieee754()
315 if (exponent > 31) /* sorry - hardcoded */ in fetch_ieee754()
326 frac_offset = mbits - exponent; in fetch_ieee754()
420 long exponent; in put_ieee754() local
471 exponent = mantissa_high = mantissa_low = 0; /* true zero */ in put_ieee754()
530 exponent = msb - 32; in put_ieee754()
531 characteristic = exponent + bias; in put_ieee754()
/freebsd-13.1/lib/libc/mips/gen/
H A Dldexp.S69 sll t1, v1, 1 # get x exponent
73 addu t1, t1, a2 # scale exponent
126 subu t1, t1, t9 # adjust exponent
127 addu t1, t1, a2 # scale exponent
146 sll t1, t1, 31 - 11 # reposition exponent
156 sll t2, v1, 31 - 20 # clear exponent, extract fraction
161 sll ta0, t2, t1 # shift right t2,t3 based on exponent
182 mtc1 zero, $f1 # exponent and upper fraction
191 mtc1 ta0, $f1 # exponent and upper fraction
/freebsd-13.1/contrib/ntp/libntp/
H A Dsnprintf.c1106 int exponent = 0; in fmtflt() local
1234 exponent++; in fmtflt()
1257 precision + 1 > exponent && exponent >= -4) { in fmtflt()
1264 if (exponent < 0) { in fmtflt()
1265 exponent = -exponent; in fmtflt()
1417 int exponent = 0; in getexponent() local
1431 return exponent; in getexponent()
1482 mypow10(int exponent) in mypow10() argument
1486 while (exponent > 0) { in mypow10()
1488 exponent--; in mypow10()
[all …]
/freebsd-13.1/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-13.1/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-13.1/sys/mips/mips/
H A Dfp.S1336 li t1, 23 # init exponent
1744 addu t1, t1, 1 # adjust exponent
2441 srl ta1, ta0, 23 # get exponent
2539 srl t1, t0, 23 # get exponent
2659 srl ta1, ta0, 20 # get exponent
2774 srl t1, t0, 20 # get exponent
2876 srl t1, t0, 23 # get exponent
2954 srl ta1, ta0, 23 # get exponent
3070 srl t1, t0, 20 # get exponent
3164 srl ta1, ta0, 20 # get exponent
[all …]
/freebsd-13.1/crypto/openssl/crypto/bn/
H A Drsaz_exp.h28 const BN_ULONG exponent[16],
34 const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
H A Drsaz_exp.c58 const BN_ULONG exponent[16],
209 p_str = (unsigned char *)exponent;
259 const BN_ULONG base[8], const BN_ULONG exponent[8],
266 unsigned char *p_str = (unsigned char *)exponent;
/freebsd-13.1/usr.bin/dc/
H A Dinout.c226 BIGNUM *base_n, *exponent; in readnumber() local
231 exponent = BN_new(); in readnumber()
234 bn_check(BN_zero(exponent)); in readnumber()
237 bn_check(BN_add_word(exponent, iscale)); in readnumber()
238 bn_check(BN_exp(divisor->number, base_n, exponent, ctx)); in readnumber()
257 BN_free(exponent); in readnumber()
/freebsd-13.1/lib/libc/resolv/
H A Dres_debug.c763 int mantissa, exponent; in precsize_ntoa() local
766 exponent = (int)((prec >> 0) & 0x0f) % 10; in precsize_ntoa()
768 val = mantissa * poweroften[exponent]; in precsize_ntoa()
780 int exponent; in precsize_aton() local
799 for (exponent = 0; exponent < 9; exponent++) in precsize_aton()
800 if (cmval < poweroften[exponent+1]) in precsize_aton()
803 mantissa = cmval / poweroften[exponent]; in precsize_aton()
807 retval = (mantissa << 4) | exponent; in precsize_aton()
/freebsd-13.1/stand/ficl/
H A Dfloat.c842 FICL_INT exponent = 0; in ficlParseFloatNumber() local
951 exponent = exponent * 10 + digit; in ficlParseFloatNumber()
967 if (exponent != 0) in ficlParseFloatNumber()
972 exponent = -exponent; in ficlParseFloatNumber()
975 power = (float)pow(10.0, exponent); in ficlParseFloatNumber()
/freebsd-13.1/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()

12345