Home
last modified time | relevance | path

Searched refs:fitsInLong (Results 1 – 19 of 19) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DDecimalQuantityTest.java435 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong()
437 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong()
439 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong()
441 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong()
443 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong()
445 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong()
447 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong()
449 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong()
452 quantity.fitsInLong()); in testFitsInLong()
454 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DDecimalQuantityTest.java432 assertTrue("Zero should fit", quantity.fitsInLong()); in testFitsInLong()
434 assertTrue("Small int should fit", quantity.fitsInLong()); in testFitsInLong()
436 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong()
438 assertFalse("Fraction should not fit", quantity.fitsInLong()); in testFitsInLong()
440 assertTrue("Large low-precision int should fit", quantity.fitsInLong()); in testFitsInLong()
442 assertTrue("10^19 should fit", quantity.fitsInLong()); in testFitsInLong()
444 assertTrue("A number between 10^19 and max long should fit", quantity.fitsInLong()); in testFitsInLong()
446 … assertTrue("A number with trailing zeros less than max long should fit", quantity.fitsInLong()); in testFitsInLong()
449 quantity.fitsInLong()); in testFitsInLong()
451 assertTrue("One less than max long should fit", quantity.fitsInLong()); in testFitsInLong()
[all …]
/external/guava/android/guava-tests/test/com/google/common/math/
DLongMathTest.java58 if (fitsInLong(expectedResult)) { in testCeilingPowerOfTwo()
178 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials()
181 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials()
186 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials()
218 if (fitsInLong(difference)) { in testLessThanBranchFree()
573 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedAdd()
593 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedSubtract()
624 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedMultiply()
644 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedPow()
721 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java58 if (fitsInLong(expectedResult)) { in testCeilingPowerOfTwo()
178 assertTrue(fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k], k))); in testConstantsBiggestBinomials()
181 || !fitsInLong(BigIntegerMath.binomial(LongMath.biggestBinomials[k] + 1, k))); in testConstantsBiggestBinomials()
186 assertFalse(fitsInLong(BigIntegerMath.binomial(2 * k, k))); in testConstantsBiggestBinomials()
218 if (fitsInLong(difference)) { in testLessThanBranchFree()
573 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedAdd()
593 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedSubtract()
624 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedMultiply()
644 boolean expectedSuccess = fitsInLong(expectedResult); in testCheckedPow()
721 long expectedLong = fitsInLong(expectedBig) ? expectedBig.longValue() : Long.MAX_VALUE; in testFactorial()
[all …]
/external/guava/android/guava/src/com/google/common/math/
DBigIntegerMath.java150 if (fitsInLong(x)) { in log10()
228 if (fitsInLong(x)) { in sqrt()
469 static boolean fitsInLong(BigInteger x) { in fitsInLong() method in BigIntegerMath
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java150 if (fitsInLong(x)) { in log10()
228 if (fitsInLong(x)) { in sqrt()
469 static boolean fitsInLong(BigInteger x) { in fitsInLong() method in BigIntegerMath
/external/icu/icu4c/source/i18n/
Dnumparse_parsednumber.cpp81 if (quantity.fitsInLong()) { in getDouble()
Dnumber_decimalquantity.h176 bool fitsInLong(bool ignoreFraction = false) const;
Dfmtable.cpp466 if (fDecimalQuantity->fitsInLong(true)) { in getInt64()
788 if (fDecimalQuantity->fitsInLong()) { in adoptDecimalQuantity()
Dnumparse_decimal.cpp364 if (digitsConsumed.fitsInLong()) { in match()
Drbnf.cpp1128 if (copy.fitsInLong()) { in format()
1133 if (copy.fitsInLong()) { in format()
Dnumber_decimalquantity.cpp556 bool DecimalQuantity::fitsInLong(bool ignoreFraction) const { in fitsInLong() function in DecimalQuantity
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/parse/
DParsedNumber.java162 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
DDecimalMatcher.java382 if (digitsConsumed.fitsInLong()) { in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/parse/
DParsedNumber.java160 if (quantity.fitsInLong() && !forceBigDecimal) { in getNumber()
DDecimalMatcher.java380 if (digitsConsumed.fitsInLong()) { in match()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java578 assert(truncateIfOverflow || fitsInLong()); in toLong()
623 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java580 assert(truncateIfOverflow || fitsInLong()); in toLong()
625 public boolean fitsInLong() { in fitsInLong() method in DecimalQuantity_AbstractBCD
/external/icu/icu4c/source/test/intltest/
Dnumfmtdatadriventest.cpp272 if (!uprv_isNaN(doubleVal) && !uprv_isInfinite(doubleVal) && digitList.fitsInLong()) { in isFormatPass()