Home
last modified time | relevance | path

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

12345

/freebsd-14.2/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 sign * (significand >> (significandBits - exponent));
39 return 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 Dfloatsisf.c37 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 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 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 Dfloatsitf.c36 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 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.c37 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 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_trunc_impl.inc76 // 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.
/freebsd-14.2/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-14.2/contrib/arm-optimized-routines/math/test/rtest/
H A Dsemi.c618 int exponent = x[0] & 0x7f800000; in test_isnanf() local
628 int exponent = x[0] & 0x7ff00000; in test_isnan() local
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()
672 int exponent = (x[0] & 0x7ff00000) >> 20; in test_fpclassify() local
675 if ((exponent == 0x00) && (fraction == 0)) out[0] = 0; in test_fpclassify()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp461 exponent = -exponent; in totalExponent()
463 if (exponent > 32767 || exponent < -32768) in totalExponent()
869 exponent = rhs.exponent; in assign()
966 exponent = rhs.exponent; in operator =()
1114 if (isFiniteNonZero() && exponent != rhs.exponent) in bitwiseIsEqual()
1189 assert(exponent == rhs.exponent); in addSignificand()
1203 assert(exponent == rhs.exponent); in subtractSignificand()
1243 exponent += rhs.exponent; in multiplySignificand()
1376 exponent -= rhs.exponent; in divideSignificand()
1471 compare = exponent - rhs.exponent; in compareAbsoluteValue()
[all …]
/freebsd-14.2/contrib/ntp/libparse/
H A Dieee754io.c175 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()
/freebsd-14.2/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-14.2/sys/contrib/device-tree/Bindings/power/supply/
H A Dlltc,ltc294x.yaml39 lltc,prescaler-exponent:
42 The prescaler exponent as explained in the datasheet.
51 - lltc,prescaler-exponent
64 lltc,prescaler-exponent = <5>; /* 2^(2*5) = 1024 */
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-14.2/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-14.2/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-14.2/lib/libc/resolv/
H A Dres_debug.c760 int mantissa, exponent; in precsize_ntoa() local
763 exponent = (int)((prec >> 0) & 0x0f) % 10; in precsize_ntoa()
765 val = mantissa * poweroften[exponent]; in precsize_ntoa()
777 int exponent; in precsize_aton() local
796 for (exponent = 0; exponent < 9; exponent++) in precsize_aton()
797 if (cmval < poweroften[exponent+1]) in precsize_aton()
800 mantissa = cmval / poweroften[exponent]; in precsize_aton()
804 retval = (mantissa << 4) | exponent; in precsize_aton()
/freebsd-14.2/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-14.2/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],

12345