Home
last modified time | relevance | path

Searched refs:significand (Results 1 – 25 of 43) sorted by relevance

12

/external/ImageMagick/MagickCore/
Dquantum-private.h120 significand, in HalfToSinglePrecision() local
138 significand=(unsigned int) (half & 0x000003ff); in HalfToSinglePrecision()
141 if (significand == 0) in HalfToSinglePrecision()
145 while ((significand & SignificandMask) == 0) in HalfToSinglePrecision()
147 significand<<=1; in HalfToSinglePrecision()
151 significand&=(~SignificandMask); in HalfToSinglePrecision()
154 (significand << SignificandShift); in HalfToSinglePrecision()
161 if (significand != 0) in HalfToSinglePrecision()
162 value|=(significand << SignificandShift); in HalfToSinglePrecision()
167 significand<<=SignificandShift; in HalfToSinglePrecision()
[all …]
/external/v8/src/
Ddouble.h89 uint64_t significand = d64 & kSignificandMask; in Significand() local
91 return significand + kHiddenBit; in Significand()
93 return significand; in Significand()
180 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
182 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
183 significand >>= 1; in DiyFpToUint64()
192 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
193 significand <<= 1; in DiyFpToUint64()
197 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
202 return (significand & kSignificandMask) | in DiyFpToUint64()
Dbignum-dtoa.cc17 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
18 DCHECK(significand != 0); in NormalizedExponent()
19 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
20 significand = significand << 1; in NormalizedExponent()
71 uint64_t significand = Double(v).Significand(); in BignumDtoa() local
72 bool is_even = (significand & 1) == 0; in BignumDtoa()
74 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
429 uint64_t significand = Double(v).Significand(); in InitialScaledStartValuesNegativeExponentPositivePower() local
438 numerator->AssignUInt64(significand); in InitialScaledStartValuesNegativeExponentPositivePower()
481 uint64_t significand = Double(v).Significand(); in InitialScaledStartValuesNegativeExponentNegativePower() local
[all …]
Dfixed-dtoa.cc296 uint64_t significand = Double(v).Significand(); in FastFixedDtoa() local
321 uint64_t dividend = significand; in FastFixedDtoa()
348 significand <<= exponent; in FastFixedDtoa()
349 FillDigits64(significand, buffer, length); in FastFixedDtoa()
353 uint64_t integrals = significand >> -exponent; in FastFixedDtoa()
354 uint64_t fractionals = significand - (integrals << -exponent); in FastFixedDtoa()
372 FillFractionals(significand, exponent, fractional_count, in FastFixedDtoa()
Dcached-powers.cc19 uint64_t significand; member
142 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForBinaryExponentRange()
154 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForDecimalExponent()
Dstrtod.cc137 uint64_t significand = ReadUint64(buffer, &read_digits); in ReadDiyFp() local
139 *result = DiyFp(significand, 0); in ReadDiyFp()
144 significand++; in ReadDiyFp()
148 *result = DiyFp(significand, exponent); in ReadDiyFp()
/external/swiftshader/third_party/LLVM/lib/Support/
DAPFloat.cpp594 significand.parts = new integerPart[count]; in initialize()
601 delete [] significand.parts; in freeSignificand()
636 integerPart *significand = significandParts(); in makeNaN() local
641 APInt::tcSet(significand, 0, numParts); in makeNaN()
643 APInt::tcAssign(significand, fill->getRawData(), in makeNaN()
650 significand[part] &= ((1ULL << bitsToPreserve) - 1); in makeNaN()
652 significand[part] = 0; in makeNaN()
659 APInt::tcClearBit(significand, QNaNBit); in makeNaN()
664 if (APInt::tcIsZero(significand, numParts)) in makeNaN()
665 APInt::tcSetBit(significand, QNaNBit - 1); in makeNaN()
[all …]
/external/llvm/lib/Support/
DAPFloat.cpp588 significand.parts = new integerPart[count]; in initialize()
595 delete [] significand.parts; in freeSignificand()
628 integerPart *significand = significandParts(); in makeNaN() local
633 APInt::tcSet(significand, 0, numParts); in makeNaN()
635 APInt::tcAssign(significand, fill->getRawData(), in makeNaN()
642 significand[part] &= ((1ULL << bitsToPreserve) - 1); in makeNaN()
644 significand[part] = 0; in makeNaN()
651 APInt::tcClearBit(significand, QNaNBit); in makeNaN()
656 if (APInt::tcIsZero(significand, numParts)) in makeNaN()
657 APInt::tcSetBit(significand, QNaNBit - 1); in makeNaN()
[all …]
/external/compiler-rt/lib/builtins/
Dfp_fixuint_impl.inc18 // Break a into sign, exponent, significand
23 const rep_t significand = (aAbs & significandMask) | implicitBit;
36 return significand >> (significandBits - exponent);
38 return (fixuint_t)significand << (exponent - significandBits);
Dfp_fixint_impl.inc20 // Break a into sign, exponent, significand
25 const rep_t significand = (aAbs & significandMask) | implicitBit;
38 return sign * (significand >> (significandBits - exponent));
40 return sign * ((fixint_t)significand << (exponent - significandBits));
Dfp_add_impl.inc59 // Extract the exponent and significand from the (possibly swapped) a and b.
75 // implicit significand bit. (If we fell through from the denormal path it
81 // Shift the significand of b by the difference in exponents, with a sticky
122 // need to shift the significand.
132 // Shift the significand into place, and mask off the implicit bit.
Dfp_mul_impl.inc63 // Or in the implicit significand bit. (If we fell through from the
69 // Get the significand of a*b. Before multiplying the significands, shift
80 // Normalize the significand, adjust exponent if needed.
97 // Otherwise, shift the significand of the result so that the round
Dfp_trunc_impl.inc36 // significand field being set
113 const src_rep_t significand = (aRep & srcSignificandMask) | srcMinNormal;
119 const bool sticky = significand << (srcBits - shift);
120 src_rep_t denormalizedSignificand = significand >> shift | sticky;
Dfp_extend_impl.inc35 // significand field being set
73 // Extend to the destination type by shifting the significand and
91 // renormalize the significand and clear the leading bit, then insert
Dfp_lib.h241 static __inline int normalize(rep_t *significand) { in normalize() argument
242 const int shift = rep_clz(*significand) - rep_clz(implicitBit); in normalize()
243 *significand <<= shift; in normalize()
/external/fio/lib/
Dieee754.c15 long long sign, exp, significand; in pack754() local
44 significand = fnorm * ((1LL << significandbits) + 0.5f); in pack754()
50 return (sign << (bits - 1)) | (exp << (bits-expbits - 1)) | significand; in pack754()
/external/vulkan-validation-layers/libs/glm/detail/
Dtype_half.inl113 // Nan -- preserve sign and significand bits
147 // the sign, s, the exponent, e, and the significand, m.
189 // Rounding may cause the significand to overflow and make
220 // significand of f, with one exception: If the 10
223 // bit in the significand.
248 m = 0; // overflow in significand,
/external/guava/guava/src/com/google/common/math/
DDoubleUtils.java87 long significand = doubleToRawLongBits(x) & SIGNIFICAND_MASK; in scaleNormalize() local
88 return longBitsToDouble(significand | ONE_BITS); in scaleNormalize()
DDoubleMath.java187 long significand = getSignificand(x); in roundToBigInteger() local
188 BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS); in roundToBigInteger()
/external/llvm/test/CodeGen/X86/
Dmisched-aa-mmos.ll21 %significand.i18.i = getelementptr inbounds %c1, %c1* %temp_rhs, i64 0, i32 1
26 %parts.i.i = bitcast %u1* %significand.i18.i to i64**
/external/llvm/test/MC/AsmParser/
Dfloating-literals.s69 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
72 # CHECK-ERROR: invalid hexadecimal floating-point constant: expected at least one significand digit
/external/kernel-headers/original/uapi/asm-x86/asm/
Dsigcontext.h86 __u16 significand[4]; member
92 __u16 significand[4]; member
/external/llvm/test/CodeGen/SystemZ/
Dfp-const-09.ll2 ; the significand is set.
/external/mesa3d/docs/specs/
DMESA_shader_integer_functions.txt71 * splitting a floating-point number into a significand and exponent
72 (frexp), or building a floating-point number from a significand and
284 <x> into a binary significand, a floating-point number in the range [0.5,
287 x = significand * 2 ^ exponent
289 The significand is returned by the function; the exponent is returned in
299 each significand component in <x> and the corresponding integral exponent
302 significand * 2 ^ exponent
/external/valgrind/include/vki/
Dvki-x86-linux.h198 unsigned short significand[4]; member
203 unsigned short significand[4]; member

12