/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_double/ |
Test_mul_double.java | 51 * @title Arguments = Double.MAX_VALUE, Double.NaN 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 59 * @title Arguments = Double.POSITIVE_INFINITY, 0 63 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); 67 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 71 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_double_2addr/ |
Test_mul_double_2addr.java | 52 * @title Arguments = Double.MAX_VALUE, Double.NaN 56 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 60 * @title Arguments = Double.POSITIVE_INFINITY, 0 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); 68 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 72 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double/ |
Test_sub_double.java | 51 * @title Arguments = Double.MAX_VALUE, Double.NaN 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 59 * @title Arguments = Double.POSITIVE_INFINITY, 60 * Double.NEGATIVE_INFINITY 64 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 65 Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double_2addr/ |
Test_sub_double_2addr.java | 50 * @title Arguments = Double.MAX_VALUE, Double.NaN 54 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 58 * @title Arguments = Double.POSITIVE_INFINITY, 59 * Double.NEGATIVE_INFINITY 63 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 64 Double.NEGATIVE_INFINITY)) [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
DoubleBenchmark.java | 24 private double d = 1.2; 30 result = Double.doubleToLongBits(d); 40 result = Double.doubleToRawLongBits(d); 48 double result = 123.0; 50 result = Double.longBitsToDouble(l); 53 throw new RuntimeException(Double.toString(result) + " " + Double.doubleToRawLongBits(result));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double/ |
Test_rem_double.java | 51 * @title Arguments = Double.MAX_VALUE, Double.NaN 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 59 * @title Arguments = Double.POSITIVE_INFINITY, 60 * Double.NEGATIVE_INFINITY 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 65 Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double_2addr/ |
Test_rem_double_2addr.java | 51 * @title Arguments = Double.MAX_VALUE, Double.NaN 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 59 * @title Arguments = Double.POSITIVE_INFINITY, 60 * Double.NEGATIVE_INFINITY 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 65 Double.NEGATIVE_INFINITY)) [all...] |
/external/guava/guava/src/com/google/common/math/ |
DoubleUtils.java | 26 * Utilities for {@code double} primitives. Some of these are exposed in JDK 6, 37 static double next(double x, boolean up) { 40 return up ? Double.MIN_VALUE : -Double.MIN_VALUE; 42 long bits = Double.doubleToRawLongBits(x); 48 return Double.longBitsToDouble(bits); 52 // Double#doubleToRawLongBits(double)} spec. 56 // Double#doubleToRawLongBits(double)} spec [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double/ |
Test_div_double.java | 61 * @title Arguments = Double.POSITIVE_INFINITY, 62 * Double.NEGATIVE_INFINITY 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 67 Double.NEGATIVE_INFINITY)); 71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 80 * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/ |
Test_div_double_2addr.java | 61 * @title Arguments = Double.POSITIVE_INFINITY, 62 * Double.NEGATIVE_INFINITY 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 67 Double.NEGATIVE_INFINITY)); 71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 80 * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/ |
Test_cmpg_double.java | 50 * @title Arguments = Double.NaN, Double.MAX_VALUE 54 assertEquals(1, t.run(Double.NaN, Double.MAX_VALUE)); 66 * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALU [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_double/ |
Test_cmpl_double.java | 50 * @title Arguments = Double.NaN, Double.MAX_VALUE 54 assertEquals(-1, t.run(Double.NaN, Double.MAX_VALUE)); 66 * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALU [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/neg_double/ |
Test_neg_double.java | 60 * @title Argument = Double.NaN 64 assertEquals(Double.NaN, t.run(Double.NaN)); 68 * @title Argument = Double.NEGATIVE_INFINITY 72 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.NEGATIVE_INFINITY)); 76 * @title Argument = Double.POSITIVE_INFINITY 80 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY)); 84 * @title Argument = Double.MAX_VALU [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
DoubleSerializer.java | 40 * Double serializer. 47 public Double readObject(ByteBuffer data, Class c) throws IOException { 52 buffer.putDouble((Double)object);
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 23 static double checkDouble(double d) throws JSONException { 24 if (Double.isInfinite(d) || Double.isNaN(d)) { 44 static Double toDouble(Object value) { 45 if (value instanceof Double) { 46 return (Double) value; 51 return Double.valueOf((String) value); 65 return (int) Double.parseDouble((String) value); 79 return (long) Double.parseDouble((String) value) [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
PowerProfile.java | 163 ArrayList<Double> array = new ArrayList<Double>(); 177 sPowerMap.put(arrayName, array.toArray(new Double[array.size()])); 189 double value = 0; 191 value = Double.valueOf(power); 203 sPowerMap.put(arrayName, array.toArray(new Double[array.size()])); 219 public double getAveragePower(String type) { 222 if (data instanceof Double[]) { 223 return ((Double[])data)[0]; 225 return (Double) sPowerMap.get(type) [all...] |
/libcore/luni/src/main/java/java/lang/ |
Double.java | 21 * The wrapper for the primitive type {@code double}. 26 public final class Double extends Number implements Comparable<Double> { 42 private final double value; 45 * Constant for the maximum {@code double} value, (2 - 2<sup>-52</sup>) * 48 public static final double MAX_VALUE = 1.79769313486231570e+308; 51 * Constant for the minimum {@code double} value, 2<sup>-1074</sup>. 53 public static final double MIN_VALUE = 5e-324; 58 * Constant for the Not-a-Number (NaN) value of the {@code double} type. 60 public static final double NaN = 0.0 / 0.0 [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
DoubleEncodedValue.java | 36 public final double value; 47 value = Double.longBitsToDouble(longValue); 54 public DoubleEncodedValue(double value) { 60 byte[] bytes = EncodedValueUtils.encodeRightZeroExtendedValue(Double.doubleToRawLongBits(value)); 74 Double.doubleToRawLongBits(value)); 81 return Double.compare(value, other.value); 91 return (int)Double.doubleToRawLongBits(value);
|
/art/test/041-narrowing/src/ |
Main.java | 9 System.out.println("Double.POSITIVE_INFINITY = " 10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); 11 System.out.println("Double.NEGATIVE_INFINITY = " 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); 14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); 17 System.out.println("Double.NaN = " 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))) [all...] |
/dalvik/dx/tests/054-dex-high16/ |
Blort.java | 31 public static void sink(double d) { 68 sink(Double.NEGATIVE_INFINITY); 71 sink(Double.POSITIVE_INFINITY); 72 sink(Double.NaN);
|
/dalvik/tests/041-narrowing/src/ |
Main.java | 9 System.out.println("Double.POSITIVE_INFINITY = " 10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); 11 System.out.println("Double.NEGATIVE_INFINITY = " 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); 14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); 17 System.out.println("Double.NaN = " 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))) [all...] |
/external/chromium_org/v8/test/cctest/ |
test-code-stubs.cc | 44 int STDCALL ConvertDToICVersion(double d) { 47 int32_t shifted_mask = static_cast<int32_t>(Double::kExponentMask >> 32); 49 (Double::kPhysicalSignificandSize - 32)) - 54 static_cast<uint32_t>(Double::kPhysicalSignificandSize); 56 if ((exponent - Double::kPhysicalSignificandSize) < 32) { 58 (exponent - Double::kPhysicalSignificandSize); 62 (BitCast<uint64_t>(d) & Double::kSignificandMask) | Double::kHiddenBit; 63 big_result = big_result >> (Double::kPhysicalSignificandSize - exponent); 75 double from [all...] |
/external/clang/test/Sema/ |
cast.c | 10 double b; 11 b = (double)a; // expected-error {{pointer cannot be cast to type}} 23 typedef double Double; 27 typedef _Complex double CDouble; 36 (void) (Double) v; 50 (void) (Double) v; 72 (void) (Double) v; 86 (void) (Double) v; 93 void testDouble(Double v) [all...] |
/art/test/302-float-conversion/src/ |
Main.java | 19 static volatile double negInfinity = Double.NEGATIVE_INFINITY;
|
/dalvik/tests/302-float-conversion/src/ |
Main.java | 19 static volatile double negInfinity = Double.NEGATIVE_INFINITY;
|