Home
last modified time | relevance | path

Searched refs:Long (Results 1 – 25 of 95) sorted by relevance

1234

/art/test/015-switch/src/
DMain.java158 temp = Long.rotateLeft(temp, value); in packedSwitch7()
159 temp = Long.rotateLeft(temp, value); in packedSwitch7()
160 temp = Long.rotateLeft(temp, value); in packedSwitch7()
161 temp = Long.rotateLeft(temp, value); in packedSwitch7()
162 temp = Long.rotateLeft(temp, value); in packedSwitch7()
163 temp = Long.rotateLeft(temp, value); in packedSwitch7()
164 temp = Long.rotateLeft(temp, value); in packedSwitch7()
165 temp = Long.rotateLeft(temp, value); in packedSwitch7()
166 temp = Long.rotateLeft(temp, value); in packedSwitch7()
167 temp = Long.rotateLeft(temp, value); in packedSwitch7()
[all …]
/art/test/041-narrowing/src/
DMain.java10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); in test_printNarrowing()
12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); in test_printNarrowing()
14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); in test_printNarrowing()
16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing()
18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))); in test_printNarrowing()
20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing()
24 + (Long.toHexString((byte)dbl2).equals("0") ? "00" : Long.toHexString((byte)dbl2) in test_printNarrowing()
33 + (Long.toHexString((long)dbl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing()
38 + (Long.toHexString((byte)fl2).equals("0") ? "00" : Long.toHexString((byte)fl2) in test_printNarrowing()
47 + (Long.toHexString((long)fl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing()
[all …]
/art/test/561-divrem/src/
DMain.java61 assertEquals(1L, $noinline$divLong(Long.MIN_VALUE)); in main()
62 assertEquals(0L, $noinline$remLong(Long.MIN_VALUE)); in main()
64 assertEquals(0L, $noinline$divLong(Long.MAX_VALUE)); in main()
65 assertEquals(Long.MAX_VALUE, $noinline$remLong(Long.MAX_VALUE)); in main()
67 assertEquals(0L, $noinline$divLong(Long.MAX_VALUE - 1)); in main()
68 assertEquals(Long.MAX_VALUE - 1, $noinline$remLong(Long.MAX_VALUE - 1)); in main()
71 assertEquals(Long.MIN_VALUE + 1, $noinline$remLong(Long.MIN_VALUE + 1)); in main()
92 return value / Long.MIN_VALUE; in $noinline$divLong()
99 return value % Long.MIN_VALUE; in $noinline$remLong()
/art/test/950-redefine-intrinsic/src/
DMain.java434 doCommonClassRedefinition(Long.class, CLASS_BYTES, DEX_BYTES);
437 l2l("highestOneBit", Long::highestOneBit, RedefinedLongIntrinsics::highestOneBit),
438 l2l("lowestOneBit", Long::lowestOneBit, RedefinedLongIntrinsics::lowestOneBit),
440 Long::numberOfLeadingZeros,
443 Long::numberOfTrailingZeros,
445 l2i("bitCount", Long::bitCount, RedefinedLongIntrinsics::bitCount),
446 li2l("rotateLeft", r, Long::rotateLeft, RedefinedLongIntrinsics::rotateLeft),
447 li2l("rotateRight", r, Long::rotateRight, RedefinedLongIntrinsics::rotateRight),
448 l2l("reverse", Long::reverse, RedefinedLongIntrinsics::reverse),
449 l2i("signum", Long::signum, RedefinedLongIntrinsics::signum),
[all …]
/art/test/428-optimizing-arith-rem/src/
DMain.java76 expectEquals(0L, $opt$Rem(Long.MAX_VALUE, 1L)); in remLong()
77 expectEquals(0L, $opt$Rem(Long.MAX_VALUE, -1L)); in remLong()
78 expectEquals(0L, $opt$Rem(Long.MIN_VALUE, 1L)); in remLong()
79 expectEquals(0L, $opt$Rem(Long.MIN_VALUE, -1L)); // no overflow in remLong()
80 expectEquals(-1L, $opt$Rem(Long.MIN_VALUE, Long.MAX_VALUE)); in remLong()
81 expectEquals(Long.MAX_VALUE, $opt$Rem(Long.MAX_VALUE, Long.MIN_VALUE)); in remLong()
84 expectEquals(0L, $opt$Rem(0L, Long.MAX_VALUE)); in remLong()
85 expectEquals(0L, $opt$Rem(0L, Long.MIN_VALUE)); in remLong()
90 expectDivisionByZero(Long.MAX_VALUE); in remLong()
91 expectDivisionByZero(Long.MIN_VALUE); in remLong()
/art/test/542-bitfield-rotates/src/
DMain.java87 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE - 1), 0x22); in test_Long_right_v_csubv()
88 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE), 0x11); in test_Long_right_v_csubv()
89 …assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE + 1), 0x8000000000000008L… in test_Long_right_v_csubv()
92 …assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -(Long.SIZE - 1)), 0x80000000000000… in test_Long_right_v_csubv()
93 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -Long.SIZE), 0x11); in test_Long_right_v_csubv()
94 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -(Long.SIZE + 1)), 0x22); in test_Long_right_v_csubv()
133 …assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE - 1), 0x8000000000000008L); in test_Long_left_csubv_v()
134 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE), 0x11); in test_Long_left_csubv_v()
135 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE + 1), 0x22); in test_Long_left_csubv_v()
138 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, -(Long.SIZE - 1)), 0x22); in test_Long_left_csubv_v()
[all …]
/art/test/082-inline-execute/src/
DMain.java479 Assert.assertEquals(Math.abs(Long.MAX_VALUE), Long.MAX_VALUE);
480 Assert.assertEquals(Math.abs(Long.MIN_VALUE), Long.MIN_VALUE);
481 Assert.assertEquals(Math.abs(Long.MIN_VALUE - 1), Long.MAX_VALUE);
510 Assert.assertEquals(Math.min(0L, Long.MAX_VALUE), 0L);
511 Assert.assertEquals(Math.min(Long.MIN_VALUE, 0L), Long.MIN_VALUE);
512 Assert.assertEquals(Math.min(Long.MIN_VALUE, Long.MAX_VALUE), Long.MIN_VALUE);
520 Assert.assertEquals(Math.max(0L, Long.MAX_VALUE), Long.MAX_VALUE);
521 Assert.assertEquals(Math.max(Long.MIN_VALUE, 0L), 0L);
522 Assert.assertEquals(Math.max(Long.MIN_VALUE, Long.MAX_VALUE), Long.MAX_VALUE);
832 Assert.assertEquals(Math.round(Long.MAX_VALUE + 1.0d), Long.MAX_VALUE);
[all …]
/art/test/988-method-trace/src/art/
DTest988Intrinsics.java37 java.lang.Long.class.toString(); in initialize()
69 java.lang.Long.reverse(0L); in test()
70 java.lang.Long.reverseBytes(0L); in test()
71 java.lang.Long.bitCount(0L); in test()
72 java.lang.Long.compare(0L, 0L); in test()
73 java.lang.Long.highestOneBit(0L); in test()
74 java.lang.Long.lowestOneBit(0L); in test()
75 java.lang.Long.numberOfLeadingZeros(0L); in test()
76 java.lang.Long.numberOfTrailingZeros(0L); in test()
77 java.lang.Long.rotateRight(0L, 0); in test()
[all …]
/art/test/566-checker-signum/src/
DMain.java133 return Long.signum(x); in signLong()
187 expectEquals(-1, signLong(Long.MIN_VALUE)); in testSignLong()
193 expectEquals(1, signLong(Long.MAX_VALUE)); in testSignLong()
209 for (long i = Long.MIN_VALUE; i <= Long.MIN_VALUE + 11L; i++) { in testSignLong()
213 for (long i = Long.MAX_VALUE; i >= Long.MAX_VALUE - 11L; i--) { in testSignLong()
/art/tools/ahat/src/heapdump/
DPerflib.java36 public static Map<Instance, Long> getRegisteredNativeAllocations(Snapshot snapshot) { in getRegisteredNativeAllocations()
37 Map<Instance, Long> allocs = new HashMap<Instance, Long>(); in getRegisteredNativeAllocations()
59 if (sizeValue instanceof Long) { in getRegisteredNativeAllocations()
60 long size = (Long)sizeValue; in getRegisteredNativeAllocations()
62 Long old = allocs.get(inst); in getRegisteredNativeAllocations()
DValue.java79 return mObject instanceof Long; in isLong()
86 public Long asLong() { in asLong()
88 return (Long)mObject; in asLong()
/art/test/701-easy-div-rem/
Dexpected.txt5 Long: checking some equally spaced dividends...
6 Long: checking small dividends...
7 Long: checking big dividends...
/art/test/006-args/src/
DArgsTest.java34 System.out.println("VALUES: " + Long.toHexString(mLongArray[0]) + " " in argTest()
35 + Long.toHexString(mLongArray[1]) + " " + Long.toHexString(j)); in argTest()
/art/test/432-optimizing-cmp/src/
DMain.java30 expectLt(Long.MIN_VALUE, Long.MAX_VALUE); in cmpLong()
31 expectGt(Long.MAX_VALUE, Long.MIN_VALUE); in cmpLong()
37 expectEquals(-1, smaliCmpLong(Long.MIN_VALUE, Long.MAX_VALUE)); in cmpLong()
38 expectEquals(1, smaliCmpLong(Long.MAX_VALUE, Long.MIN_VALUE)); in cmpLong()
39 expectEquals(0, smaliCmpLong(Long.MIN_VALUE, Long.MIN_VALUE)); in cmpLong()
40 expectEquals(0, smaliCmpLong(Long.MAX_VALUE, Long.MAX_VALUE)); in cmpLong()
/art/test/044-proxy/src/
DReturnsAndArgPassing.java157 myHandler.returnType = Long.class; in testProxyReturns()
158 check(proxyMyInterface.longFoo() == Long.MAX_VALUE); in testProxyReturns()
162 check(proxyMyInterface.longBar() == Long.MIN_VALUE); in testProxyReturns()
352 myHandler.returnType = Long.class; // Long -> byte == fail in testProxyReturns()
447 check((Integer)proxyMyInterface.selectArg(0, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
449 check((Integer)proxyMyInterface.selectArg(1, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
451 check((Long)proxyMyInterface.selectArg(2, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
452 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Long.MAX_VALUE); in testProxyArgPassing()
453 check((Float)proxyMyInterface.selectArg(3, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
455 check((Double)proxyMyInterface.selectArg(4, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
[all …]
/art/test/431-optimizing-arith-shifts/src/
DMain.java86 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, 63)); // overflow in testShlLong()
93 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, -1)); // -1 & 0x3f = 63 in testShlLong()
98 expectEquals(Long.MIN_VALUE, $opt$ShlLong(7L, Integer.MAX_VALUE)); in testShlLong()
156 expectEquals(0L, $opt$ShrLong(Long.MAX_VALUE, 63)); in testShrLong()
157 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, 63)); in testShrLong()
163 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testShrLong()
220 expectEquals(0L, $opt$UShrLong(Long.MAX_VALUE, 63)); in testUShrLong()
221 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, 63)); in testUShrLong()
227 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testUShrLong()
231 expectEquals(4L, $opt$UShrLong(Long.MIN_VALUE, -3)); // -3 & 0x3f = 61 in testUShrLong()
/art/test/567-checker-compare/src/
DMain.java163 return Long.compare(x, y); in compareLongs()
489 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE + 1L)); in testCompareLongs()
490 expectEquals(-1, compareLongs(Long.MIN_VALUE, -1L)); in testCompareLongs()
491 expectEquals(-1, compareLongs(Long.MIN_VALUE, 0L)); in testCompareLongs()
492 expectEquals(-1, compareLongs(Long.MIN_VALUE, 1L)); in testCompareLongs()
493 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MAX_VALUE)); in testCompareLongs()
498 expectEquals(0, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE)); in testCompareLongs()
502 expectEquals(0, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE)); in testCompareLongs()
507 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MIN_VALUE)); in testCompareLongs()
508 expectEquals(1, compareLongs(Long.MAX_VALUE, -1L)); in testCompareLongs()
[all …]
/art/test/955-methodhandles-smali/smali/
DMain.smali69 # Returns a method handle to boolean java.lang.Long.compareTo(java.lang.Long other).
72 new-instance v0, Ljava/lang/Long;
74 invoke-direct {v0, v1, v2}, Ljava/lang/Long;-><init>(J)V
81 # Call MethodType.methodType(rtype=int.class, ptype[0] = Long.class)
86 # Call Main.getHandleForVirtual(Long.class, "compareTo", methodType);
119 # set v0 to Long.TYPE aka. long.class
120 sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
127 # Call MethodType.methodType(rtype=String.class, ptype[0]=Long.class)
192 # Then use a java/lang/Long; - should perform an unboxing conversion.
193 new-instance v1, Ljava/lang/Long;
[all …]
/art/test/454-get-vreg/src/
DMain.java46 if (rm.testPairVReg(Long.MIN_VALUE, Long.MAX_VALUE, 0, 2.0) != 44) { in main()
/art/test/438-volatile/src/
DMain.java23 checkVolatileUpdate(Long.MAX_VALUE); in main()
24 checkVolatileUpdate(Long.MIN_VALUE); in main()
/art/test/631-checker-fp-abs/src/
DMain.java128 dpnans[i] & Long.MAX_VALUE, in main()
152 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64()
153 + ", found: 0x" + Long.toHexString(result)); in expectEquals64()
160 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEqualsNaN64()
161 + ", found: 0x" + Long.toHexString(result)); in expectEqualsNaN64()
/art/test/302-float-conversion/src/
DMain.java38 if (sumInf == Long.MIN_VALUE) { in test1()
60 double d = Long.MAX_VALUE; in test3()
/art/test/417-optimizing-arith-div/src/
DMain.java149 expectEquals(-Long.MAX_VALUE, $opt$Div(Long.MAX_VALUE, -1L)); in divLong()
150 expectEquals(Long.MIN_VALUE, $opt$Div(Long.MIN_VALUE, -1L)); // overflow in divLong()
155 expectEquals(0L, $opt$Div(0L, Long.MAX_VALUE)); in divLong()
156 expectEquals(0L, $opt$Div(0L, Long.MIN_VALUE)); in divLong()
160 expectDivisionByZero(Long.MAX_VALUE); in divLong()
161 expectDivisionByZero(Long.MIN_VALUE); in divLong()
/art/test/800-smali/smali/
Db_17410612.smali12 invoke-static {v0, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
/art/tools/dexfuzz/src/dexfuzz/
DMutationStats.java33 private Map<String,Long> stats;
37 stats = new HashMap<String,Long>(); in MutationStats()

1234