/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | DoubleTest.java | 190 result = Double.parseDouble(originalDoubleString); in doTestCompareRawBits() 191 rawBits = Double.doubleToLongBits(result); in doTestCompareRawBits() 192 convertedString = new Double(result).toString(); in doTestCompareRawBits() 199 assertEquals(answer, Double.toString(dd)); in test_toString() 200 Double d = new Double(dd); in test_toString() 201 assertEquals(answer, Double.toString(d.doubleValue())); in test_toString() 209 Double d = new Double(39089.88888888888888888888888888888888); in test_ConstructorD() 218 Double d = new Double("39089.88888888888888888888888888888888"); in test_ConstructorLjava_lang_String() 224 d = new Double("1E+-20"); in test_ConstructorLjava_lang_String() 231 …d = Double.parseDouble("-1.23399999999999996511673809963093681727585202138420992908181304283780288… in test_ConstructorLjava_lang_String() [all …]
|
D | MathTest.java | 80 long lr = Double.doubleToLongBits(r); in test_acosD() 81 long t = Double.doubleToLongBits(ADJ / HYP); in test_acosD() 92 long lr = Double.doubleToLongBits(r); in test_asinD() 93 long t = Double.doubleToLongBits(OPP / HYP); in test_asinD() 123 assertTrue("Should return Double.NaN", Double.isNaN(Math in test_cbrt_D() 124 .cbrt(Double.NaN))); in test_cbrt_D() 126 Double.POSITIVE_INFINITY, Math in test_cbrt_D() 127 .cbrt(Double.POSITIVE_INFINITY), 0D); in test_cbrt_D() 129 Double.NEGATIVE_INFINITY, Math in test_cbrt_D() 130 .cbrt(Double.NEGATIVE_INFINITY), 0D); in test_cbrt_D() [all …]
|
D | StrictMathTest.java | 130 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath in test_cbrt_D() 131 .cbrt(Double.NaN))); in test_cbrt_D() 133 Double.POSITIVE_INFINITY, StrictMath in test_cbrt_D() 134 .cbrt(Double.POSITIVE_INFINITY)); in test_cbrt_D() 136 Double.NEGATIVE_INFINITY, StrictMath in test_cbrt_D() 137 .cbrt(Double.NEGATIVE_INFINITY)); in test_cbrt_D() 138 assertEquals(Double.doubleToLongBits(0.0), Double in test_cbrt_D() 140 assertEquals(Double.doubleToLongBits(+0.0), Double in test_cbrt_D() 142 assertEquals(Double.doubleToLongBits(-0.0), Double in test_cbrt_D() 149 5.643803094122362E102, StrictMath.cbrt(Double.MAX_VALUE)); in test_cbrt_D() [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
D | ConcurrentModTest.java | 36 Double one = new Double(1.0); in testGet() 37 Double two = new Double(2.0); in testGet() 38 Double three = new Double(3.0); in testGet() 39 Double four = new Double(4.0); in testGet() 47 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0); in testGet() 48 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0); in testGet() 66 Double one = new Double(1.0); in testSet() 67 Double two = new Double(2.0); in testSet() 68 Double three = new Double(3.0); in testSet() 69 Double four = new Double(4.0); in testSet() [all …]
|
D | Arrays2Test.java | 36 double[] specials = new double[] { Double.NEGATIVE_INFINITY, in test_binarySearch$DD() 37 -Double.MAX_VALUE, -2d, -Double.MIN_VALUE, -0d, 0d, in test_binarySearch$DD() 38 Double.MIN_VALUE, 2d, Double.MAX_VALUE, in test_binarySearch$DD() 39 Double.POSITIVE_INFINITY, Double.NaN }; in test_binarySearch$DD() 78 Arrays.fill(d, Double.MAX_VALUE); in test_equals$D$D() 79 Arrays.fill(x, Double.MIN_VALUE); in test_equals$D$D() 83 Arrays.fill(x, Double.MAX_VALUE); in test_equals$D$D() 90 Arrays.equals(new double[] { Double.NaN }, new double[] { Double.NaN })); in test_equals$D$D() 131 …uble[] specials1 = new double[]{Double.NaN, Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Double.PO… in test_sort$D() 132 … specials2 = new double[]{0d, Double.POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, Double.MIN_… in test_sort$D() [all …]
|
D | FormatterTest.java | 1145 { new Double(1.1d), "%3.2b", " tr", }, in test_format_LString$LObject_GeneralConversionB() 1146 { new Double(1.1d), "%-4.6b", "true", }, in test_format_LString$LObject_GeneralConversionB() 1147 { new Double(1.1d), "%.2b", "tr", }, in test_format_LString$LObject_GeneralConversionB() 1209 { new Double(1.1d), "%2.3s", "1.1", }, in test_format_LString$LObject_GeneralConversionS() 1210 { new Double(1.1d), "%-6.4s", "1.1 ", }, in test_format_LString$LObject_GeneralConversionS() 1211 { new Double(1.1d), "%.5s", "1.1", }, in test_format_LString$LObject_GeneralConversionS() 1259 new Double(1.1d), in test_format_LString$LObject_GeneralConversionH() 1302 new Double(1.1d), in test_formatLjava_lang_String$Ljava_lang_Object_GeneralConversionOther() 1397 new Double(1.1d), "string content", new Float(1.1f), new Date() }; in test_formatLjava_lang_String$Ljava_lang_Object_CharacterConversion() 2875 {Double.MAX_VALUE, "%e", "1.797693e+308"}, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE() [all …]
|
D | EnumMapTest.java | 103 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_lang_Class() 109 EnumMap enumEmptyMap = new EnumMap<Empty, Double>(Empty.class); in test_ConstructorLjava_lang_Class() 156 enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_util_EnumMap() 157 Double double1 = new Double(1); in test_ConstructorLjava_util_EnumMap() 189 enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_util_Map() 297 Double double1 = new Double(3); in test_containsValueLjava_lang_Object() 298 Double double2 = new Double(3); in test_containsValueLjava_lang_Object() 768 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); in test_getLjava_lang_Object() 777 enumColorMap.put(Color.Green, new Double(4)); in test_getLjava_lang_Object() 779 new Double(4), enumColorMap.get(Color.Green)); in test_getLjava_lang_Object() [all …]
|
/external/v8/test/cctest/ |
D | test-double.cc | 19 CHECK_EQ(3512700564088504e-318, Double(ordered).value()); in TEST() 22 CHECK_EQ(5e-324, Double(min_double64).value()); in TEST() 25 CHECK_EQ(1.7976931348623157e308, Double(max_double64).value()); in TEST() 30 DiyFp diy_fp = Double(ordered).AsDiyFp(); in TEST() 36 diy_fp = Double(min_double64).AsDiyFp(); in TEST() 42 diy_fp = Double(max_double64).AsDiyFp(); in TEST() 50 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp(); in TEST() 56 diy_fp = Double(min_double64).AsNormalizedDiyFp(); in TEST() 62 diy_fp = Double(max_double64).AsNormalizedDiyFp(); in TEST() 71 CHECK(Double(min_double64).IsDenormal()); in TEST() [all …]
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | DoubleArrayAsListTest.java | 44 private static List<Double> asList(Double[] values) { in asList() 53 List<ListTestSuiteBuilder<Double>> builders = in suite() 69 for (ListTestSuiteBuilder<Double> builder : builders) { in suite() 85 @Override protected List<Double> create(Double[] elements) { in create() 91 @Override protected List<Double> create(Double[] elements) { in create() 92 Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE}; in create() 93 Double[] all = concat(elements, suffix); in create() 99 @Override protected List<Double> create(Double[] elements) { in create() 100 Double[] prefix = {(double) 86, (double) 99}; in create() 101 Double[] all = concat(prefix, elements); in create() [all …]
|
D | DoublesTest.java | 19 import static java.lang.Double.NaN; 49 private static final double LEAST = Double.NEGATIVE_INFINITY; 50 private static final double GREATEST = Double.POSITIVE_INFINITY; 53 LEAST, -Double.MAX_VALUE, -1.0, -0.0, 0.0, 1.0, Double.MAX_VALUE, GREATEST, 54 Double.MIN_NORMAL, -Double.MIN_NORMAL, Double.MIN_VALUE, -Double.MIN_VALUE, 63 assertEquals(((Double) value).hashCode(), Doubles.hashCode(value)); in testHashCode() 69 assertEquals(!(Double.isNaN(value) || Double.isInfinite(value)), Doubles.isFinite(value)); in testIsFinite() 78 Double.valueOf(x).compareTo(y), in testCompare() 199 assertTrue(Double.isNaN(Doubles.max(VALUES))); in testMax() 220 assertTrue(Double.isNaN(Doubles.min(VALUES))); in testMin() [all …]
|
/external/clang/test/SemaCXX/ |
D | missing-namespace-qualifier-typo-corrections.cpp | 10 int Double(int x) { return x + x; } in Double() function 12 …Double(toFoobar()); // expected-error{{use of undeclared identifier 'toFoobar'; did you mean 'bars… in empty() 26 …if (toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'toFoobar'; did you mea… in Check() 27 …if (noFoobar()) Double(7); // expected-error{{use of undeclared identifier 'noFoobar'; did you mea… in Check() 28 …if (moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'moreFoobar'; did you… in Check() 29 …if (lessFoobar()) Double(7); // expected-error{{use of undeclared identifier 'lessFoobar'; did you… in Check() 30 …if (baztool::toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'baztool'; did… in Check() 31 …if (nested::moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'nested'; did… in Check() 32 …if (dummy::moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did y… in Check() 33 …if (dummy::mreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did yo… in Check() [all …]
|
/external/guava/guava/src/com/google/common/math/ |
D | DoubleUtils.java | 40 return up ? Double.MIN_VALUE : -Double.MIN_VALUE; in next() 42 long bits = Double.doubleToRawLongBits(x); in next() 48 return Double.longBitsToDouble(bits); in next() 79 long bits = Double.doubleToRawLongBits(d); in getExponent() 100 long bits = Double.doubleToRawLongBits(d); in scalb() 103 return Double.longBitsToDouble(bits); in scalb() 112 long bits = Double.doubleToRawLongBits(d); in getSignificand() 132 long significand = Double.doubleToRawLongBits(x) & SIGNIFICAND_MASK; in scaleNormalize() 133 return Double.longBitsToDouble(significand | ONE_BITS); in scaleNormalize() 144 return x.signum() * Double.POSITIVE_INFINITY; in bigToDouble() [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 59 BigInteger MAX_DOUBLE_VALUE = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); in testConstantsMaxFactorial() 133 DoubleMath.roundToInt(Double.NaN, mode); in testRoundNaNToIntAlwaysFails() 142 DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails() 146 DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToIntAlwaysFails() 214 DoubleMath.roundToLong(Double.NaN, mode); in testRoundNaNToLongAlwaysFails() 223 DoubleMath.roundToLong(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails() 227 DoubleMath.roundToLong(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToLongAlwaysFails() 270 DoubleMath.roundToBigInteger(Double.NaN, mode); in testRoundNaNToBigIntegerAlwaysFails() 279 DoubleMath.roundToBigInteger(Double.POSITIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails() 283 DoubleMath.roundToBigInteger(Double.NEGATIVE_INFINITY, mode); in testRoundInfiniteToBigIntegerAlwaysFails() [all …]
|
D | MathTesting.java | 187 Double.MAX_EXPONENT - 1, Double.MAX_EXPONENT, Double.MAX_EXPONENT + 1)) { 203 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES; 204 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES; 205 static final Iterable<Double> FINITE_DOUBLE_CANDIDATES; 206 static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES; 207 static final Iterable<Double> ALL_DOUBLE_CANDIDATES; 209 ImmutableSet.Builder<Double> integralBuilder = ImmutableSet.builder(); 210 ImmutableSet.Builder<Double> fractionalBuilder = ImmutableSet.builder(); 211 integralBuilder.addAll(Doubles.asList(0.0, -0.0, Double.MAX_VALUE, -Double.MAX_VALUE)); 214 for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) { [all …]
|
/external/guava/guava/src/com/google/common/primitives/ |
D | Doubles.java | 23 import static java.lang.Double.NEGATIVE_INFINITY; 24 import static java.lang.Double.POSITIVE_INFINITY; 54 public static final int BYTES = Double.SIZE / Byte.SIZE; 64 return ((Double) value).hashCode(); in hashCode() 82 return Double.compare(a, b); in compare() 368 public static double[] toArray(Collection<Double> collection) { in toArray() 378 array[i] = (Double) checkNotNull(boxedArray[i]); in toArray() 400 public static List<Double> asList(double... backingArray) { in asList() 408 private static class DoubleArrayAsList extends AbstractList<Double> 432 @Override public Double get(int index) { in get() [all …]
|
/external/v8/src/ |
D | bignum-dtoa.cc | 44 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent() 95 ASSERT(!Double(v).IsSpecial()); in BignumDtoa() 96 uint64_t significand = Double(v).Significand(); in BignumDtoa() 98 int exponent = Double(v).Exponent(); in BignumDtoa() 413 numerator->AssignUInt64(Double(v).Significand()); in InitialScaledStartValuesPositiveExponent() 414 numerator->ShiftLeft(Double(v).Exponent()); in InitialScaledStartValuesPositiveExponent() 426 delta_plus->ShiftLeft(Double(v).Exponent()); in InitialScaledStartValuesPositiveExponent() 429 delta_minus->ShiftLeft(Double(v).Exponent()); in InitialScaledStartValuesPositiveExponent() 436 uint64_t v_bits = Double(v).AsUint64(); in InitialScaledStartValuesPositiveExponent() 437 if ((v_bits & Double::kSignificandMask) == 0) { in InitialScaledStartValuesPositiveExponent() [all …]
|
D | double.h | 41 class Double { 51 Double() : d64_(0) {} in Double() function 52 explicit Double(double d) : d64_(double_to_uint64(d)) {} in Double() function 53 explicit Double(uint64_t d64) : d64_(d64) {} in Double() function 54 explicit Double(DiyFp diy_fp) in Double() function 89 if (d64_ == kInfinity) return Double(kInfinity).value(); in NextDouble() 95 return Double(d64_ - 1).value(); in NextDouble() 97 return Double(d64_ + 1).value(); in NextDouble()
|
/external/clang/test/Sema/ |
D | cast.c | 23 typedef double Double; typedef 36 (void) (Double) v; in testBool() 50 (void) (Double) v; in testInt() 64 (void) (Double) v; in testLong() 78 (void) (Double) v; in testFloat() 85 void testDouble(Double v) { in testDouble() 90 (void) (Double) v; in testDouble() 102 (void) (Double) v; in testCI() 114 (void) (Double) v; in testCLong() 126 (void) (Double) v; in testCFloat() [all …]
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
D | CstDouble.java | 29 new CstDouble(Double.doubleToLongBits(0.0)); 33 new CstDouble(Double.doubleToLongBits(1.0)); 63 Double.longBitsToDouble(bits) + '}'; in toString() 79 return Double.toString(Double.longBitsToDouble(getLongBits())); in toHuman() 88 return Double.longBitsToDouble(getLongBits()); in getValue()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AtomicDoubleTest.java | 24 Double.NEGATIVE_INFINITY, 25 -Double.MAX_VALUE, 30 -Double.MIN_VALUE, 33 Double.MIN_VALUE, 38 Double.MAX_VALUE, 39 Double.POSITIVE_INFINITY, 40 Double.NaN, 46 return Double.doubleToRawLongBits(x) == Double.doubleToRawLongBits(y); in bitEquals() 50 assertEquals(Double.doubleToRawLongBits(x), in assertBitEquals() 51 Double.doubleToRawLongBits(y)); in assertBitEquals() [all …]
|
D | AtomicDoubleArrayTest.java | 25 Double.NEGATIVE_INFINITY, 26 -Double.MAX_VALUE, 31 -Double.MIN_VALUE, 34 Double.MIN_VALUE, 39 Double.MAX_VALUE, 40 Double.POSITIVE_INFINITY, 41 Double.NaN, 47 return Double.doubleToRawLongBits(x) == Double.doubleToRawLongBits(y); in bitEquals() 51 assertEquals(Double.doubleToRawLongBits(x), in assertBitEquals() 52 Double.doubleToRawLongBits(y)); in assertBitEquals()
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
D | DoubleEncodedValue.java | 47 value = Double.longBitsToDouble(longValue); in DoubleEncodedValue() 60 … byte[] bytes = EncodedValueUtils.encodeRightZeroExtendedValue(Double.doubleToRawLongBits(value)); in writeValue() 74 Double.doubleToRawLongBits(value)); in placeValue() 81 return Double.compare(value, other.value); in compareValue() 91 return (int)Double.doubleToRawLongBits(value); in hashCode()
|
/external/llvm/lib/Target/ARM/ |
D | ARMScheduleV6.td | 201 // Double-precision FP Unary 207 // Double-precision FP Compare 210 // Single to Double FP Convert 213 // Double to Single FP Convert 219 // Double-Precision FP to Integer Convert 225 // Integer to Double-Precision FP Convert 231 // Double-precision FP ALU 237 // Double-precision FP Multiply 243 // Double-precision FP MAC 249 // Double-precision Fused FP MAC [all …]
|
D | ARMScheduleA8.td | 261 // Double-precision FP Unary 270 // Double-precision FP Compare 275 // Single to Double FP Convert 280 // Double to Single FP Convert 289 // Double-Precision FP to Integer Convert 298 // Integer to Double-Precision FP Convert 307 // Double-precision FP ALU 316 // Double-precision FP Multiply 325 // Double-precision FP MAC 334 // Double-precision Fused FP MAC [all …]
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | ChoiceFormatTest.java | 49 formattedString = cf.format(Double.NEGATIVE_INFINITY); in test_Constructor$D$Ljava_lang_String() 82 formattedString = cf.format(Double.POSITIVE_INFINITY); in test_Constructor$D$Ljava_lang_String() 96 formattedString = cf.format(Double.NEGATIVE_INFINITY); in test_ConstructorLjava_lang_String() 129 formattedString = cf.format(Double.POSITIVE_INFINITY); in test_ConstructorLjava_lang_String() 269 …assertEquals(0, new ChoiceFormat("|").format(Double.NaN, new StringBuffer(), new FieldPosition(6))… in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() 271 assertEquals("Less than one", f1.format(Double.NaN, new StringBuffer(), field).toString()); in test_formatDLjava_lang_StringBufferLjava_text_FieldPosition() 337 assertTrue("Not NaN", Double.isNaN(ChoiceFormat.nextDouble(Double.NaN))); in test_nextDoubleD() 364 assertTrue("Not a Double1", result instanceof Double); in test_parseLjava_lang_StringLjava_text_ParsePosition() 369 assertTrue("Incorrect result", Double.isNaN(f1.parse("12one", pos) in test_parseLjava_lang_StringLjava_text_ParsePosition() 374 assertTrue("Not a Double2", result instanceof Double); in test_parseLjava_lang_StringLjava_text_ParsePosition() [all …]
|