Home
last modified time | relevance | path

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

123456789

/openbsd-src/sys/arch/hppa/spmath/
H A Dcnv_float.h48 #define Sgl_isinexact_to_fix(sgl_value,exponent) \ argument
49 ((exponent < (SGL_P - 1)) ? \
50 (Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) : FALSE)
75 #define Sgl_isone_roundbit(sgl_value,exponent) \ argument
76 ((Sall(sgl_value) << (SGL_EXP_LENGTH + 1 + exponent)) >> 31)
78 #define Sgl_isone_stickybit(sgl_value,exponent) \ argument
79 (exponent < (SGL_P - 2) ? \
80 Sall(sgl_value) << (SGL_EXP_LENGTH + 2 + exponent) : FALSE)
180 #define Dbl_isinexact_to_fix(dbl_valueA,dbl_valueB,exponent) \ argument
181 (exponent < (DBL_P-33) ? \
[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.h314 #define Dbl_setwrapped_exponent(dbl_value,exponent,op) \ argument
315 Deposit_dexponent(dbl_value,(exponent op DBL_WRAP))
437 #define Dbl_normalize(dbl_opndA,dbl_opndB,exponent) \ argument
440 exponent -= 8; \
444 exponent -= 4; \
448 exponent -= 1; \
497 #define Dbl_denormalize(opndp1,opndp2,exponent,guard,sticky,inexact) \ argument
499 if (exponent >= (1-DBL_P)) { \
500 if (exponent >= -31) { \
501 guard = (Dallp2(opndp2) >> (-(exponent))) & 1; \
[all …]
/openbsd-src/gnu/gcc/libdecnumber/
H A DdecNumber.c354 Int exponent = 0; /* working exponent [assume 0] */ in decNumberFromString() local
508 exponent = X10 (exponent) + (Int) * c - (Int) '0'; in decNumberFromString()
523 exponent = DECNUMMAXE * 2; in decNumberFromString()
527 exponent = -exponent; /* was negative */ in decNumberFromString()
533 exponent = exponent - (last - dotchar); /* .. adjust exponent */ in decNumberFromString()
614 dn->exponent = exponent; in decNumberFromString()
664 dzero.exponent = rhs->exponent; /* [no coefficient expansion] */ in decNumberAbs()
835 dzero.exponent = rhs->exponent; /* [no coefficient expansion] */ in decNumberMinus()
869 dzero.exponent = rhs->exponent; /* [no coefficient expansion] */ in decNumberPlus()
1085 workset.digits = reqdigits + (inrhs->digits + inrhs->exponent) + 1; in decNumberPower()
[all …]
/openbsd-src/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-src/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
157 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid()
162 if ((exponent == 0) != (int_bit == 0)) in floatformat_i387_ext_is_valid()
309 long exponent; in floatformat_to_double() local
315 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_to_double()
321 if ((unsigned long) exponent == fmt->exp_nan) in floatformat_to_double()
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()
[all …]
/openbsd-src/gnu/llvm/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 * ((fixint_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 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()
/openbsd-src/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-src/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-src/gnu/llvm/llvm/lib/Support/
H A DAPFloat.cpp333 int exponent = 0; in totalExponent() local
365 exponent = unsignedExponent; in totalExponent()
367 exponent = -exponent; in totalExponent()
368 exponent += exponentAdjustment; in totalExponent()
369 if (exponent > 32767 || exponent < -32768) in totalExponent()
374 exponent = negative ? -32768: 32767; in totalExponent()
376 return exponent; in totalExponent()
416 int exponent; member
430 D->exponent = 0; in interpretDecimal()
457 D->exponent = *ExpOrErr; in interpretDecimal()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Ddoublest.c123 long exponent; in convert_floatformat_to_doublest() local
171 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in convert_floatformat_to_doublest()
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()
213 dto += ldexp ((double) mant, exponent - mant_bits); in convert_floatformat_to_doublest()
214 exponent -= mant_bits; in convert_floatformat_to_doublest()
[all …]
/openbsd-src/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-src/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-src/gnu/usr.bin/perl/
H A Dnumeric.c1364 S_mulexp10(NV value, I32 exponent) in S_mulexp10() argument
1371 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()
1402 if (-(exponent + exp_v) >= NV_MAX_10_EXP) in S_mulexp10()
1404 while (-exponent >= NV_MAX_10_EXP) { in S_mulexp10()
1407 ++exponent; in S_mulexp10()
1413 if (exponent < 0) { in S_mulexp10()
1415 exponent = -exponent; in S_mulexp10()
1422 while (value && exponent > NV_MAX_10_EXP) { in S_mulexp10()
[all …]
/openbsd-src/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