/external/v8/src/ |
D | strtod.cc | 115 int exponent, in TrimToMaxSignificantDigits() argument 128 exponent + (buffer.length() - kMaxSignificantDecimalDigits); in TrimToMaxSignificantDigits() 168 int exponent = 0; in ReadDiyFp() local 169 *result = DiyFp(significand, exponent); in ReadDiyFp() 176 int exponent, in DoubleStrtod() argument 197 if (exponent < 0 && -exponent < kExactPowersOfTenSize) { in DoubleStrtod() 201 *result /= exact_powers_of_ten[-exponent]; in DoubleStrtod() 204 if (0 <= exponent && exponent < kExactPowersOfTenSize) { in DoubleStrtod() 208 *result *= exact_powers_of_ten[exponent]; in DoubleStrtod() 213 if ((0 <= exponent) && in DoubleStrtod() [all …]
|
D | fixed-dtoa.cc | 235 static void FillFractionals(uint64_t fractionals, int exponent, in FillFractionals() argument 238 ASSERT(-128 <= exponent && exponent <= 0); in FillFractionals() 242 if (-exponent <= 64) { in FillFractionals() 245 int point = -exponent; in FillFractionals() 270 ASSERT(64 < -exponent && -exponent <= 128); in FillFractionals() 272 fractionals128.Shift(-exponent - 64); in FillFractionals() 319 int exponent = Double(v).Exponent(); in FastFixedDtoa() local 325 if (exponent > 20) return false; in FastFixedDtoa() 331 if (exponent + kDoubleSignificandSize > 64) { in FastFixedDtoa() 355 if (exponent > divisor_power) { in FastFixedDtoa() [all …]
|
D | conversions-inl.h | 94 int exponent = d.Exponent(); in DoubleToInt32() local 95 if (exponent < 0) { in DoubleToInt32() 96 if (exponent <= -Double::kSignificandSize) return 0; in DoubleToInt32() 97 return d.Sign() * static_cast<int32_t>(d.Significand() >> -exponent); in DoubleToInt32() 99 if (exponent > 31) return 0; in DoubleToInt32() 100 return d.Sign() * static_cast<int32_t>(d.Significand() << exponent); in DoubleToInt32() 149 int exponent = 0; in InternalStringToIntDouble() local 183 exponent = overflow_bits_count; in InternalStringToIntDouble() 190 exponent += radix_log_2; in InternalStringToIntDouble() 211 exponent++; in InternalStringToIntDouble() [all …]
|
D | conversions.cc | 113 int exponent = decimal_point - 1; in DoubleToCString() local 114 if (exponent < 0) exponent = -exponent; in DoubleToCString() 115 builder.AddDecimalInteger(exponent); in DoubleToCString() 215 int exponent, in CreateExponentialRepresentation() argument 219 if (exponent < 0) { in CreateExponentialRepresentation() 221 exponent = -exponent; in CreateExponentialRepresentation() 241 builder.AddDecimalInteger(exponent); in CreateExponentialRepresentation() 284 int exponent = decimal_point - 1; in DoubleToExponentialCString() local 286 CreateExponentialRepresentation(decimal_rep, exponent, negative, f+1); in DoubleToExponentialCString() 317 int exponent = decimal_point - 1; in DoubleToPrecisionCString() local [all …]
|
D | double.h | 210 int exponent = diy_fp.e(); in DiyFpToUint64() local 213 exponent++; in DiyFpToUint64() 215 if (exponent >= kMaxExponent) { in DiyFpToUint64() 218 if (exponent < kDenormalExponent) { in DiyFpToUint64() 221 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64() 223 exponent--; in DiyFpToUint64() 226 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64() 229 biased_exponent = static_cast<uint64_t>(exponent + kExponentBias); in DiyFpToUint64()
|
D | bignum-dtoa.cc | 42 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument 46 exponent = exponent - 1; in NormalizedExponent() 48 return exponent; in NormalizedExponent() 54 static int EstimatePower(int exponent); 98 int exponent = Double(v).Exponent(); in BignumDtoa() local 99 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa() 371 static int EstimatePower(int exponent) { in EstimatePower() argument 397 double estimate = ceil((exponent + kSignificandSize - 1) * k1Log10 - 1e-10); in EstimatePower() 454 int exponent = Double(v).Exponent(); in InitialScaledStartValuesNegativeExponentPositivePower() local 465 denominator->ShiftLeft(-exponent); in InitialScaledStartValuesNegativeExponentPositivePower() [all …]
|
D | fast-dtoa.cc | 246 int* exponent) { in BiggestPowerTen() argument 253 *exponent = 9; in BiggestPowerTen() 261 *exponent = 8; in BiggestPowerTen() 269 *exponent = 7; in BiggestPowerTen() 278 *exponent = 6; in BiggestPowerTen() 286 *exponent = 5; in BiggestPowerTen() 294 *exponent = 4; in BiggestPowerTen() 303 *exponent = 3; in BiggestPowerTen() 311 *exponent = 2; in BiggestPowerTen() 319 *exponent = 1; in BiggestPowerTen() [all …]
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleUtils.java | 80 int exponent = (int) ((bits & EXPONENT_MASK) >> SIGNIFICAND_BITS); in getExponent() local 81 exponent -= EXPONENT_BIAS; in getExponent() 82 return exponent; in getExponent() 90 int exponent = getExponent(d); in scalb() local 91 switch (exponent) { in scalb() 97 int newExponent = exponent + scale; in scalb() 111 int exponent = getExponent(d); in getSignificand() local 114 return (exponent == MIN_DOUBLE_EXPONENT - 1) in getSignificand() 139 int exponent = absX.bitLength() - 1; in bigToDouble() local 141 if (exponent < Long.SIZE - 1) { in bigToDouble() [all …]
|
D | DoubleMath.java | 163 int exponent = getExponent(x); in roundToBigInteger() local 164 if (exponent < 0) { in roundToBigInteger() 168 BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS); in roundToBigInteger() 213 int exponent = getExponent(x); in log2() local 231 increment = exponent < 0 & !isPowerOfTwo(x); in log2() 234 increment = exponent >= 0 & !isPowerOfTwo(x); in log2() 247 return increment ? exponent + 1 : exponent; in log2()
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | DecimalNumber.cpp | 90 int exponent = (m_exponent >= 0) ? m_exponent : -m_exponent; in bufferLengthForStringExponential() local 93 if (exponent >= 100) in bufferLengthForStringExponential() 95 if (exponent >= 10) in bufferLengthForStringExponential() 180 int exponent; in toStringExponential() local 183 exponent = m_exponent; in toStringExponential() 186 exponent = -m_exponent; in toStringExponential() 190 if (exponent >= 100) in toStringExponential() 191 *next++ = '0' + exponent / 100; in toStringExponential() 192 if (exponent >= 10) in toStringExponential() 193 *next++ = '0' + (exponent % 100) / 10; in toStringExponential() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/filters/arm/ |
D | FELightingNEON.cpp | 170 #define POWF_SQR(value, exponent, current, remaining) \ argument 171 "tst " exponent ", #" ASSTRING(current) NL \ 173 "tst " exponent ", #" ASSTRING(remaining) NL \ 176 #define POWF_SQRT(value, exponent, current, remaining) \ argument 177 "tst " exponent ", #" ASSTRING(remaining) NL \ 179 "tst " exponent ", #" ASSTRING(current) NL \ 183 #define POWF(value, exponent) \ argument 184 "tst " exponent ", #0xfc0" NL \ 186 "tst " exponent ", #0x03f" NL \ 190 POWF_SQR(value, exponent, 0x040, 0xf80) \ [all …]
|
/external/icu4c/i18n/ |
D | decNumber.c | 392 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in uprv_decNumberToInt32() 427 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in uprv_decNumberToUInt32() 497 Int exponent=0; /* working exponent [assume 0] */ in uprv_decNumberFromString() local 615 exponent=X10(exponent)+(Int)*c-(Int)'0'; in uprv_decNumberFromString() 624 if (c>firstexp+9+1 || *firstexp>'1') exponent=DECNUMMAXE*2; in uprv_decNumberFromString() 627 if (nege) exponent=-exponent; /* was negative */ in uprv_decNumberFromString() 652 exponent-=(last-dotchar); /* adjust exponent */ in uprv_decNumberFromString() 699 dn->exponent=exponent; in uprv_decNumberFromString() 711 if ((dn->exponent-1<set->emin-dn->digits) in uprv_decNumberFromString() 712 || (dn->exponent-1>set->emax-set->digits)) { in uprv_decNumberFromString() [all …]
|
D | digitlst.cpp | 293 fDecNumber->exponent = d - adjustedDigits; in setDecimalAt() 301 return fDecNumber->exponent; // Exponent should be zero for these cases. in getDecimalAt() 303 return fDecNumber->exponent + fDecNumber->digits; in getDecimalAt() 321 if (decNumberIsZero(fDecNumber) && fDecNumber->exponent==0) { in getCount() 375 fDecNumber->exponent--; // To match the old digit list implementation. in append() 388 fDecNumber->exponent--; in append() 489 if (fDecNumber->digits + fDecNumber->exponent > 10) { in getLong() 493 if (fDecNumber->exponent != 0) { in getLong() 520 if (fDecNumber->digits + fDecNumber->exponent > 19) { in getInt64() 534 int32_t numIntDigits = fDecNumber->digits + fDecNumber->exponent; in getInt64() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/ |
D | RSAKeyParameters.java | 9 private BigInteger exponent; field in RSAKeyParameters 14 BigInteger exponent) in RSAKeyParameters() argument 19 this.exponent = exponent; in RSAKeyParameters() 29 return exponent; in getExponent()
|
/external/compiler-rt/lib/ |
D | fixdfsi.c | 29 const int exponent = (aAbs >> significandBits) - exponentBias; in __fixdfsi() local 33 if ((unsigned int)exponent < significandBits) { in __fixdfsi() 34 return sign * (significand >> (significandBits - exponent)); in __fixdfsi() 38 else if (exponent < 0) { in __fixdfsi() 47 return sign * (significand << (exponent - significandBits)); in __fixdfsi()
|
D | fixsfsi.c | 27 const int exponent = (aAbs >> significandBits) - exponentBias; in __fixsfsi() local 31 if ((unsigned int)exponent < significandBits) { in __fixsfsi() 32 return sign * (significand >> (significandBits - exponent)); in __fixsfsi() 36 else if (exponent < 0) { in __fixsfsi() 45 return sign * (significand << (exponent - significandBits)); in __fixsfsi()
|
D | floatunsisf.c | 31 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatunsisf() local 35 if (exponent <= significandBits) { in __floatunsisf() 36 const int shift = significandBits - exponent; in __floatunsisf() 39 const int shift = exponent - significandBits; in __floatunsisf() 47 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsisf()
|
D | floatsisf.c | 39 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatsisf() local 43 if (exponent <= significandBits) { in __floatsisf() 44 const int shift = significandBits - exponent; in __floatsisf() 47 const int shift = exponent - significandBits; in __floatsisf() 55 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsisf()
|
D | floatunsidf.c | 31 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatunsidf() local 35 const int shift = significandBits - exponent; in __floatunsidf() 39 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatunsidf()
|
D | floatsidf.c | 39 const int exponent = (aWidth - 1) - __builtin_clz(a); in __floatsidf() local 45 const int shift = significandBits - exponent; in __floatsidf() 49 result += (rep_t)(exponent + exponentBias) << significandBits; in __floatsidf()
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 180 int exponent = 0; in totalExponent() local 207 exponent = unsignedExponent; in totalExponent() 209 exponent = -exponent; in totalExponent() 210 exponent += exponentAdjustment; in totalExponent() 211 if (exponent > 32767 || exponent < -32768) in totalExponent() 216 exponent = negative ? -32768: 32767; in totalExponent() 218 return exponent; in totalExponent() 258 int exponent; member 270 D->exponent = 0; in interpretDecimal() 290 D->exponent = readExponent(p + 1, end); in interpretDecimal() [all …]
|
/external/v8/test/cctest/ |
D | test-strtod.cc | 20 static double StrtodChar(const char* str, int exponent) { in StrtodChar() argument 21 return Strtod(StringToVector(str), exponent); in StrtodChar() 371 int exponent, in CheckDouble() argument 382 return CompareBignumToDiyFp(input_digits, exponent, lower_boundary) <= 0; in CheckDouble() 389 return CompareBignumToDiyFp(input_digits, exponent, upper_boundary) >= 0; in CheckDouble() 394 return CompareBignumToDiyFp(input_digits, exponent, lower_boundary) >= 0 && in CheckDouble() 395 CompareBignumToDiyFp(input_digits, exponent, upper_boundary) <= 0; in CheckDouble() 397 return CompareBignumToDiyFp(input_digits, exponent, lower_boundary) > 0 && in CheckDouble() 398 CompareBignumToDiyFp(input_digits, exponent, upper_boundary) < 0; in CheckDouble() 433 int exponent = DeterministicRandom() % (25*2 + 1) - 25 - length; in TEST() local [all …]
|
/external/webkit/Source/WebCore/html/parser/ |
D | HTMLParserIdioms.cpp | 124 int exponent = 0; in parseToDoubleForNumberTypeWithDecimalPlaces() local 151 exponent = 19999; /* safe for 16 bit ints */ in parseToDoubleForNumberTypeWithDecimalPlaces() 153 exponent = static_cast<int>(exponent32); in parseToDoubleForNumberTypeWithDecimalPlaces() 155 exponent = -exponent; in parseToDoubleForNumberTypeWithDecimalPlaces() 157 exponent = 0; in parseToDoubleForNumberTypeWithDecimalPlaces() 161 int intDecimalPlaces = baseDecimalPlaces - exponent; in parseToDoubleForNumberTypeWithDecimalPlaces()
|
/external/freetype/src/cff/ |
D | cffparse.c | 138 FT_Long result, number, exponent; in cff_parse_real() local 149 exponent = 0; in cff_parse_real() 253 exponent = exponent * 10 + nib; in cff_parse_real() 256 if ( exponent > 1000 ) in cff_parse_real() 261 exponent = -exponent; in cff_parse_real() 265 exponent += power_ten + exponent_add; in cff_parse_real() 271 exponent += integer_length; in cff_parse_real() 278 *scaling = exponent - fraction_length + 1; in cff_parse_real() 282 if ( exponent > 0 ) in cff_parse_real() 288 new_fraction_length = FT_MIN( exponent, 5 ); in cff_parse_real() [all …]
|
/external/webkit/Source/WebCore/svg/ |
D | SVGParserUtilities.cpp | 48 FloatType integer, decimal, frac, exponent; in genericParseNumber() local 52 exponent = 0; in genericParseNumber() 117 exponent *= static_cast<FloatType>(10); in genericParseNumber() 118 exponent += *ptr - '0'; in genericParseNumber() 122 if (!isValidRange(exponent) || exponent > std::numeric_limits<FloatType>::max_exponent) in genericParseNumber() 129 if (exponent) in genericParseNumber() 130 number *= static_cast<FloatType>(pow(10.0, expsign * static_cast<int>(exponent))); in genericParseNumber()
|