Home
last modified time | relevance | path

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

123456789

/openbsd/sys/arch/hppa/spmath/
H A Dcnv_float.h49 ((exponent < (SGL_P - 1)) ? \
79 (exponent < (SGL_P - 2) ? \
181 (exponent < (DBL_P-33) ? \
183 (exponent < (DBL_P-1) ? Dallp2(dbl_valueB) << (exponent + (33-DBL_P)) : \
196 (exponent < (DBL_P-34) ? \
198 (exponent<(DBL_P-2) ? (Dallp2(dbl_valueB) << (exponent + (34-DBL_P))) : \
210 if (exponent < 31) Dallp1(dbl_valueA) >>= 30 - exponent; \
220 if (exponent <= 31) { \
231 {if (exponent < 32) { \
233 if (exponent <= 20) \
[all …]
H A Dsgl_float.h191 #define Sgl_setwrapped_exponent(sgl_value,exponent,op) \ argument
192 Deposit_sexponent(sgl_value,(exponent op SGL_WRAP))
257 #define Sgl_normalize(sgl_opnd,exponent) \ argument
260 exponent -= 8; \
264 exponent -= 4; \
268 exponent -= 1; \
297 #define Sgl_denormalize(opnd,exponent,guard,sticky,inexact) \ argument
299 if (exponent >= (1 - SGL_P)) { \
300 guard = (Sall(opnd) >> (-(exponent))) & 1; \
301 if (exponent < 0) sticky |= Sall(opnd) << (32+exponent); \
[all …]
H A Ddbl_float.h315 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
440 exponent -= 8; \
444 exponent -= 4; \
448 exponent -= 1; \
499 if (exponent >= (1-DBL_P)) { \
500 if (exponent >= -31) { \
501 guard = (Dallp2(opndp2) >> (-(exponent))) & 1; \
502 if (exponent < 0) sticky |= Dallp2(opndp2) << (32+exponent); \
503 if (exponent > -31) { \
505 Dallp1(opndp1) >>= 1-exponent; \
[all …]
/openbsd/gnu/gcc/libdecnumber/
H A DdecNumber.c614 dn->exponent = exponent; in decNumberFromString()
1891 dest->exponent = src->exponent; in decNumberCopy()
2864 exponent = lhs->exponent - rhs->exponent; /* ideal exponent */ in decDivideOp()
2879 if (exponent < res->exponent) in decDivideOp()
3270 var1initpad + exponent - lhs->exponent + rhs->exponent; in decDivideOp()
3282 if (rhs->exponent < exponent) in decDivideOp()
3283 exponent = rhs->exponent; in decDivideOp()
3309 rhs->exponent - exponent); in decDivideOp()
3382 res->exponent = exponent; in decDivideOp()
3569 if (lhs->exponent < 0 && rhs->exponent < 0 && exponent > 0) in decMultiplyOp()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dextzvsi.c6 unsigned int exponent:11; member
14 unsigned int exponent; in foo() local
16 exponent = x.exponent; in foo()
17 if (exponent == 0) in foo()
19 else if (exponent > 1) in foo()
27 x.exponent = 1; in main()
/openbsd/gnu/lib/libiberty/src/
H A Dcopysign.c11 unsigned int exponent: 11; member
21 unsigned int exponent: 11; member
54 unsigned int exponent :11; member
69 unsigned int exponent: 11; member
91 unsigned int exponent: 8; member
98 unsigned int exponent:8; member
116 unsigned int exponent: 8; member
124 unsigned int exponent:8; member
H A Dfloatformat.c154 unsigned long exponent, int_bit; in floatformat_i387_ext_is_valid() local
309 long exponent; in floatformat_to_double() local
368 special_exponent = exponent == 0 || (unsigned long) exponent == fmt->exp_nan; in floatformat_to_double()
372 exponent -= fmt->exp_bias; in floatformat_to_double()
383 dto = ldexp (1.0, exponent); in floatformat_to_double()
385 exponent++; in floatformat_to_double()
397 if (exponent == 0 && mant != 0) in floatformat_to_double()
405 if (exponent != 0) in floatformat_to_double()
406 exponent -= mant_bits; in floatformat_to_double()
479 int exponent; in floatformat_from_double() local
[all …]
/openbsd/gnu/llvm/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) - 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.c36 const int exponent = (aWidth - 1) - clzsi(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 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 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()
/openbsd/gnu/usr.bin/binutils/gas/
H A Dflonum-mult.c84 long exponent; in flonum_multip() local
103 exponent = a->exponent + b->exponent; in flonum_multip()
110 exponent -= extra_product_positions; /* Increases exponent. */ in flonum_multip()
158 exponent++; in flonum_multip()
174 exponent++; in flonum_multip()
187 product->exponent = exponent; in flonum_multip()
H A Dflonum-copy.c56 out->exponent = in->exponent; in flonum_copy()
68 out->exponent = in->exponent + shorten; in flonum_copy()
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Dflonum-mult.c84 long exponent; in flonum_multip() local
103 exponent = a->exponent + b->exponent; in flonum_multip()
110 exponent -= extra_product_positions; /* Increases exponent. */ in flonum_multip()
158 exponent++; in flonum_multip()
174 exponent++; in flonum_multip()
187 product->exponent = exponent; in flonum_multip()
H A Dflonum-copy.c56 out->exponent = in->exponent; in flonum_copy()
68 out->exponent = in->exponent + shorten; in flonum_copy()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DAPFloat.cpp367 exponent = -exponent; in totalExponent()
369 if (exponent > 32767 || exponent < -32768) in totalExponent()
775 exponent = rhs.exponent; in assign()
864 exponent = rhs.exponent; in operator =()
1011 if (isFiniteNonZero() && exponent != rhs.exponent) in bitwiseIsEqual()
1086 assert(exponent == rhs.exponent); in addSignificand()
1100 assert(exponent == rhs.exponent); in subtractSignificand()
1140 exponent += rhs.exponent; in multiplySignificand()
1273 exponent -= rhs.exponent; in divideSignificand()
1368 compare = exponent - rhs.exponent; in compareAbsoluteValue()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/
H A Ddoublest.c123 long exponent; in convert_floatformat_to_doublest() local
181 special_exponent = exponent == 0 || exponent == fmt->exp_nan; in convert_floatformat_to_doublest()
188 exponent -= fmt->exp_bias; in convert_floatformat_to_doublest()
189 else if (exponent == 0) in convert_floatformat_to_doublest()
190 exponent = 1 - fmt->exp_bias; in convert_floatformat_to_doublest()
201 dto = ldexp (1.0, exponent); in convert_floatformat_to_doublest()
203 exponent++; in convert_floatformat_to_doublest()
214 exponent -= mant_bits; in convert_floatformat_to_doublest()
345 int exponent; in convert_doublest_to_floatformat() local
470 long exponent; in floatformat_is_nan() local
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/java/
H A Djavaop.h63 unsigned int exponent : 8; member
66 #define JFLOAT_FINITE(f) ((f).exponent != 0xFF)
73 unsigned int exponent : 11; member
77 #define JDOUBLE_FINITE(f) ((f).exponent != 0x7FF)
116 f.exponent = (w & 0x7f800000) >> 23; in WORD_TO_FLOAT()
147 d.exponent = (hi & 0x7ff00000) >> 20; in WORDS_TO_DOUBLE()
/openbsd/games/random/
H A Drandom.c114 int exponent = -64; in random_real() local
123 exponent -= 64; in random_real()
131 if (__predict_false(exponent < -1074)) in random_real()
145 exponent -= shift; in random_real()
163 return ldexp((double)significand, exponent); in random_real()
/openbsd/gnu/usr.bin/perl/
H A Dnumeric.c1371 if (exponent == 0) in S_mulexp10()
1399 if (exponent >= NV_MAX_10_EXP || exponent + exp_v >= NV_MAX_10_EXP) in S_mulexp10()
1401 if (exponent < 0) { in S_mulexp10()
1407 ++exponent; in S_mulexp10()
1413 if (exponent < 0) { in S_mulexp10()
1415 exponent = -exponent; in S_mulexp10()
1423 exponent--; in S_mulexp10()
1439 exponent ^= bit; in S_mulexp10()
1642 I32 exponent = 0; in Perl_my_atof3() local
1836 exponent = exponent * 10 + (*s++ - '0'); in Perl_my_atof3()
[all …]
/openbsd/sys/dev/hid/
H A Dhidmt.c71 int log_extent, phy_extent, exponent; in hidmt_get_resolution() local
81 exponent = h->unit_exponent; in hidmt_get_resolution()
82 if (exponent < -8 || exponent > 15) /* See above. */ in hidmt_get_resolution()
84 if (exponent > 7) in hidmt_get_resolution()
85 exponent -= 16; in hidmt_get_resolution()
87 for (; exponent < 0 && log_extent <= INT_MAX / 10; exponent++) in hidmt_get_resolution()
89 for (; exponent > 0 && phy_extent <= INT_MAX / 10; exponent--) in hidmt_get_resolution()
91 if (exponent != 0) in hidmt_get_resolution()

123456789