/aosp12/art/test/411-optimizing-arith/src/ |
H A D | MulTest.java | 116 expectNaN($opt$Mul(0F, Float.NEGATIVE_INFINITY)); in mulFloat() 119 expectNaN($opt$Mul(Float.NaN, Float.NEGATIVE_INFINITY)); in mulFloat() 126 expectEquals(Float.NEGATIVE_INFINITY, $opt$Mul(2F, Float.NEGATIVE_INFINITY)); in mulFloat() 128 expectEquals(Float.NEGATIVE_INFINITY, in mulFloat() 129 $opt$Mul(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in mulFloat() 133 $opt$Mul(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in mulFloat() 148 expectNaN($opt$Mul(0D, Double.NEGATIVE_INFINITY)); in mulDouble() 151 expectNaN($opt$Mul(Double.NaN, Double.NEGATIVE_INFINITY)); in mulDouble() 158 expectEquals(Double.NEGATIVE_INFINITY, $opt$Mul(2D, Double.NEGATIVE_INFINITY)); in mulDouble() 160 …expectEquals(Double.NEGATIVE_INFINITY, $opt$Mul(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY… in mulDouble() [all …]
|
H A D | SubTest.java | 112 expectNaN($opt$Sub(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in subFloat() 116 expectNaN($opt$Sub(Float.NaN, Float.NEGATIVE_INFINITY)); in subFloat() 119 expectEquals(Float.NEGATIVE_INFINITY, $opt$Sub(-Float.MAX_VALUE, Float.MAX_VALUE)); in subFloat() 120 expectEquals(Float.NEGATIVE_INFINITY, $opt$Sub(2F, Float.POSITIVE_INFINITY)); in subFloat() 122 expectEquals(Float.POSITIVE_INFINITY, $opt$Sub(2F, Float.NEGATIVE_INFINITY)); in subFloat() 124 … expectEquals(Float.NEGATIVE_INFINITY, $opt$Sub(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in subFloat() 139 expectNaN($opt$Sub(Double.NEGATIVE_INFINITY, Double.NEGATIVE_INFINITY)); in subDouble() 143 expectNaN($opt$Sub(Double.NaN, Double.NEGATIVE_INFINITY)); in subDouble() 147 expectEquals(Double.NEGATIVE_INFINITY, $opt$Sub(2D, Double.POSITIVE_INFINITY)); in subDouble() 149 expectEquals(Double.POSITIVE_INFINITY, $opt$Sub(2D, Double.NEGATIVE_INFINITY)); in subDouble() [all …]
|
H A D | DivTest.java | 170 expectEquals(0F, $opt$Div(0F, Float.NEGATIVE_INFINITY)); in divFloat() 171 expectEquals(0F, $opt$Div(11F, Float.NEGATIVE_INFINITY)); in divFloat() 176 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat() 177 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat() 180 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divFloat() 184 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-3F, 0F)); in divFloat() 199 expectEquals(0D, $opt$Div(0D, Float.NEGATIVE_INFINITY)); in divDouble() 200 expectEquals(0D, $opt$Div(11D, Float.NEGATIVE_INFINITY)); in divDouble() 205 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divDouble() 209 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divDouble() [all …]
|
H A D | NegTest.java | 141 assertEquals(Float.NEGATIVE_INFINITY, $opt$noinline$NegFloat(Float.POSITIVE_INFINITY)); in negFloat() 142 assertEquals(Float.POSITIVE_INFINITY, $opt$noinline$NegFloat(Float.NEGATIVE_INFINITY)); in negFloat() 166 assertEquals(Double.NEGATIVE_INFINITY, $opt$noinline$NegDouble(Double.POSITIVE_INFINITY)); in negDouble() 167 assertEquals(Double.POSITIVE_INFINITY, $opt$noinline$NegDouble(Double.NEGATIVE_INFINITY)); in negDouble()
|
/aosp12/art/test/041-narrowing/ |
H A D | expected-stdout.txt | 3 Double.NEGATIVE_INFINITY = fff0000000000000 5 Float.NEGATIVE_INFINITY = fff0000000000000 24 (byte) Double.NEGATIVE_INFINITY = 00 expected: 00 25 (short) Double.NEGATIVE_INFINITY = 0000 expected: 0000 26 (int) Double.NEGATIVE_INFINITY = 80000000 expected: 80000000 27 (long) Double.NEGATIVE_INFINITY = 8000000000000000 expected: 8000000000000000 34 (byte) Float.NEGATIVE_INFINITY = 00 expected: 00 35 (short) Float.NEGATIVE_INFINITY = 0000 expected: 0000 36 (int) Float.NEGATIVE_INFINITY = 80000000 expected: 80000000 37 (long) Float.NEGATIVE_INFINITY = 8000000000000000 expected: 8000000000000000
|
/aosp12/art/test/436-rem-float/src/ |
H A D | Main.java | 85 expectApproxEquals(0F, $opt$Rem(0F, Float.NEGATIVE_INFINITY)); in remFloat() 87 expectApproxEquals(4F, $opt$Rem(4F, Float.NEGATIVE_INFINITY)); in remFloat() 89 expectApproxEquals(-4F, $opt$Rem(-4F, Float.NEGATIVE_INFINITY)); in remFloat() 111 expectNaN($opt$Rem(Float.NEGATIVE_INFINITY, Float.MIN_VALUE)); in remFloat() 112 expectNaN($opt$Rem(Float.NEGATIVE_INFINITY, Float.MAX_VALUE)); in remFloat() 113 expectNaN($opt$Rem(Float.NEGATIVE_INFINITY, Float.MIN_NORMAL)); in remFloat() 114 expectNaN($opt$Rem(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in remFloat() 180 expectApproxEquals(0D, $opt$Rem(0D, Double.NEGATIVE_INFINITY)); in remDouble() 182 expectApproxEquals(4D, $opt$Rem(4D, Double.NEGATIVE_INFINITY)); in remDouble() 206 expectNaN($opt$Rem(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); in remDouble() [all …]
|
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | RationalTest.java | 147 Rational negInf = NEGATIVE_INFINITY; in testEquals() 182 assertEquals(NEGATIVE_INFINITY, negInf); in testReduction() 207 assertGreaterThan(NaN, NEGATIVE_INFINITY); in testCompareTo() 218 assertLessThan(NEGATIVE_INFINITY, UNIT); in testCompareTo() 220 assertLessThan(NEGATIVE_INFINITY, ZERO); in testCompareTo() 240 assertFinite(NEGATIVE_INFINITY, false); in testConvenienceMethods() 247 assertInfinite(NEGATIVE_INFINITY, true); in testConvenienceMethods() 254 assertNaN(NEGATIVE_INFINITY, false); in testConvenienceMethods() 261 assertZero(NEGATIVE_INFINITY, false); in testConvenienceMethods() 297 assertValueEquals(NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY); in testValueConversions() [all …]
|
H A D | RangeTest.java | 45 Range<Float> floatRange = new Range<Float>(Float.NEGATIVE_INFINITY, in testConstructor() 47 assertLower(floatRange, Float.NEGATIVE_INFINITY); in testConstructor() 85 new Range<Float>(0.0f, Float.NEGATIVE_INFINITY); in testIllegalValues() 123 Range<Float> infinities = Range.create(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY); in testInRange() 125 assertInRange(infinities, Float.NEGATIVE_INFINITY); in testInRange()
|
/aosp12/art/test/580-fp16/src-art/ |
H A D | Main.java | 72 assertEquals(FP16.NEGATIVE_INFINITY, FP16.toHalf(Float.NEGATIVE_INFINITY)); in testToHalf() 95 assertEquals(FP16.NEGATIVE_INFINITY, FP16.toHalf(-65520.0f)); in testToHalf() 129 assertEquals(FP16.NEGATIVE_INFINITY, FP16.floor(FP16.NEGATIVE_INFINITY)); in testFloor() 154 assertEquals(FP16.NEGATIVE_INFINITY, FP16.ceil(FP16.NEGATIVE_INFINITY)); in testCeil() 178 assertEquals(FP16.NEGATIVE_INFINITY, FP16.rint(FP16.NEGATIVE_INFINITY)); in testRint() 208 assertFalse(FP16.greater(FP16.NEGATIVE_INFINITY, FP16.LOWEST_VALUE)); in testGreater() 209 assertTrue(FP16.greater(FP16.LOWEST_VALUE, FP16.NEGATIVE_INFINITY)); in testGreater() 255 assertTrue(FP16.greaterEquals(FP16.NEGATIVE_INFINITY, FP16.NEGATIVE_INFINITY)); in testGreaterEquals() 280 assertFalse(FP16.less(FP16.LOWEST_VALUE, FP16.NEGATIVE_INFINITY)); in testLess() 281 assertTrue(FP16.less(FP16.NEGATIVE_INFINITY, FP16.LOWEST_VALUE)); in testLess() [all …]
|
/aosp12/art/test/580-checker-round/src/ |
H A D | Main.java | 35 expectEquals32(-2147483648, round32(Float.NEGATIVE_INFINITY)); in main() 52 expectEquals32(-2147483648, round32(Math.nextAfter(-2147483648.0f, Float.NEGATIVE_INFINITY))); in main() 57 expectEquals32(2147483520, round32(Math.nextAfter(2147483648.0f, Float.NEGATIVE_INFINITY))); in main() 114 expectEquals64(-9223372036854775808L, round64(Double.NEGATIVE_INFINITY)); in main() 132 round64(Math.nextAfter(-9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main() 139 round64(Math.nextAfter(9223372036854775808.0, Double.NEGATIVE_INFINITY))); in main()
|
/aosp12/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
H A D | ProtoInputStreamFloatTest.java | 133 assertEquals(Float.NEGATIVE_INFINITY, results[6]); in testRead() 148 testReadCompat(Float.NEGATIVE_INFINITY); in testReadCompat() 319 assertEquals(Float.NEGATIVE_INFINITY, results[6][0]); in testRepeated() 320 assertEquals(Float.NEGATIVE_INFINITY, results[6][1]); in testRepeated() 333 Float.MIN_NORMAL, Float.MIN_VALUE, Float.NEGATIVE_INFINITY, Float.NaN, in testRepeatedCompat() 499 assertEquals(Float.NEGATIVE_INFINITY, results[6][0]); in testPacked() 500 assertEquals(Float.NEGATIVE_INFINITY, results[6][1]); in testPacked() 513 Float.MIN_NORMAL, Float.MIN_VALUE, Float.NEGATIVE_INFINITY, Float.NaN, in testPackedCompat()
|
H A D | ProtoInputStreamDoubleTest.java | 142 assertEquals(Double.NEGATIVE_INFINITY, results[6]); in testRead() 157 testReadCompat(Double.NEGATIVE_INFINITY); in testReadCompat() 346 assertEquals(Double.NEGATIVE_INFINITY, results[6][0]); in testRepeated() 347 assertEquals(Double.NEGATIVE_INFINITY, results[6][1]); in testRepeated() 360 Double.MIN_NORMAL, Double.MIN_VALUE, Double.NEGATIVE_INFINITY, Double.NaN, in testRepeatedCompat() 546 assertEquals(Double.NEGATIVE_INFINITY, results[6][0]); in testPacked() 547 assertEquals(Double.NEGATIVE_INFINITY, results[6][1]); in testPacked() 560 Double.MIN_NORMAL, Double.MIN_VALUE, Double.NEGATIVE_INFINITY, Double.NaN, in testPackedCompat()
|
/aosp12/art/test/041-narrowing/src/ |
H A D | Main.java | 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); in test_printNarrowing() 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing() 61 double dbl4 = Double.NEGATIVE_INFINITY; in test_printNarrowing() 85 float fl4 = Float.NEGATIVE_INFINITY; in test_printNarrowing()
|
/aosp12/art/test/577-checker-fp2int/src/ |
H A D | Main.java | 49 expectEquals32(0xff800000, f2int(Float.NEGATIVE_INFINITY)); in main() 77 expectEquals64(0xfff0000000000000L, d2long(Double.NEGATIVE_INFINITY)); in main()
|
/aosp12/art/test/567-checker-builder-intrinsics/src/ |
H A D | TestIsNan.java | 41 expectFalse(isNaN32(Float.NEGATIVE_INFINITY)); in main() 73 expectFalse(isNaN64(Double.NEGATIVE_INFINITY)); in main()
|
H A D | TestFpAbs.java | 68 expectEqualsSP(Float.POSITIVE_INFINITY, $opt$noinline$absSP(Float.NEGATIVE_INFINITY)); in main() 111 expectEqualsDP(Double.POSITIVE_INFINITY, $opt$noinline$absDP(Double.NEGATIVE_INFINITY)); in main()
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 126 } else if (value == Float.NEGATIVE_INFINITY) { in createRational() 127 return Rational.NEGATIVE_INFINITY; in createRational()
|
/aosp12/art/test/703-floating-point-div/src/ |
H A D | Main.java | 40 double d6 = Double.NEGATIVE_INFINITY; in divDoubleTest() 68 float f6 = Float.NEGATIVE_INFINITY; in divFloatTest()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | SparseDoubleArrayTest.java | 47 final double[] values = {7, -12.4, 7, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, in testPutGet() 83 final double[] values = {7, -12.4, 7, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, in testKeyValueAt()
|
/aosp12/art/test/082-inline-execute/src/ |
H A D | Main.java | 671 Assert.assertEquals(Math.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 738 Assert.assertEquals(Math.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 808 Assert.assertEquals(Math.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 842 Assert.assertEquals(Math.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE); 879 Assert.assertEquals(Math.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE); 1135 Assert.assertEquals(StrictMath.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 1154 Assert.assertEquals(StrictMath.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 1173 Assert.assertEquals(StrictMath.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0); 1207 Assert.assertEquals(StrictMath.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE); 1244 Assert.assertEquals(StrictMath.round(Float.NEGATIVE_INFINITY), Integer.MIN_VALUE); [all …]
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | Rational.java | 60 public static final Rational NEGATIVE_INFINITY = new Rational(-1, 0); field in Rational 591 return NEGATIVE_INFINITY; in parseRational()
|
/aosp12/art/test/422-type-conversion/src/ |
H A D | Main.java | 369 assertIntEquals(-2147483648, $opt$noinline$FloatToInt(Float.NEGATIVE_INFINITY)); in floatToInt() 397 assertLongEquals(-9223372036854775808L, $opt$noinline$FloatToLong(Float.NEGATIVE_INFINITY)); in floatToLong() 423 …assertDoubleEquals(Double.NEGATIVE_INFINITY, $opt$noinline$FloatToDouble(Float.NEGATIVE_INFINITY)); in floatToDouble() 449 assertIntEquals(-2147483648, $opt$noinline$DoubleToInt(Double.NEGATIVE_INFINITY)); in doubleToInt() 477 assertLongEquals(-9223372036854775808L, $opt$noinline$DoubleToLong(Double.NEGATIVE_INFINITY)); in doubleToLong() 503 … assertFloatEquals(Float.NEGATIVE_INFINITY, $opt$noinline$DoubleToFloat(Double.NEGATIVE_INFINITY)); in doubleToFloat()
|
/aosp12/frameworks/libs/modules-utils/java/android/annotation/ |
H A D | FloatRange.java | 45 double from() default Double.NEGATIVE_INFINITY; in from()
|
/aosp12/art/test/302-float-conversion/src/ |
H A D | Main.java | 19 static volatile double negInfinity = Double.NEGATIVE_INFINITY;
|
/aosp12/art/test/952-invoke-custom/src/ |
H A D | TestReturnValues.java | 234 Double.NEGATIVE_INFINITY, in testDoubleReturnValues() 248 Float.NEGATIVE_INFINITY, in testFloatReturnValues()
|