/art/test/701-easy-div-rem/src/ |
D | Main.java | 58 public static int idiv_by_pow2_0(int x) {return x / 1;} in idiv_by_pow2_0() argument 59 public static int idiv_by_pow2_1(int x) {return x / 2;} in idiv_by_pow2_1() argument 60 public static int idiv_by_pow2_2(int x) {return x / 4;} in idiv_by_pow2_2() argument 61 public static int idiv_by_pow2_3(int x) {return x / 8;} in idiv_by_pow2_3() argument 62 public static int idiv_by_pow2_4(int x) {return x / 16;} in idiv_by_pow2_4() argument 63 public static int idiv_by_pow2_5(int x) {return x / 32;} in idiv_by_pow2_5() argument 64 public static int idiv_by_pow2_6(int x) {return x / 64;} in idiv_by_pow2_6() argument 65 public static int idiv_by_pow2_7(int x) {return x / 128;} in idiv_by_pow2_7() argument 66 public static int idiv_by_pow2_8(int x) {return x / 256;} in idiv_by_pow2_8() argument 67 public static int idiv_by_pow2_9(int x) {return x / 512;} in idiv_by_pow2_9() argument [all …]
|
/art/test/480-checker-dead-blocks/src/ |
D | Main.java | 53 public static int testTrueBranch(int x, int y) { in testTrueBranch() argument 56 z = x + y; in testTrueBranch() 58 z = x - y; in testTrueBranch() 83 public static int testFalseBranch(int x, int y) { in testFalseBranch() argument 86 z = x + y; in testFalseBranch() 88 z = x - y; in testFalseBranch() 99 public static int testRemoveLoop(int x) { in testRemoveLoop() argument 101 for (int i = 0; i < x; ++i) { in testRemoveLoop() 102 x *= x; in testRemoveLoop() 105 return x; in testRemoveLoop() [all …]
|
/art/test/474-checker-boolean-input/src/ |
D | Main.java | 37 public static boolean InlinePhi(int x) { in InlinePhi() argument 38 return (x == 42) ? f1 : f2; in InlinePhi() 41 public static boolean TestPhiAsBoolean(int x) { in TestPhiAsBoolean() argument 42 return InlinePhi(x) != true ? true : false; in TestPhiAsBoolean() 54 public static boolean InlineAnd(boolean x, boolean y) { in InlineAnd() argument 55 return x & y; in InlineAnd() 58 public static boolean TestAndAsBoolean(boolean x, boolean y) { in TestAndAsBoolean() argument 59 return InlineAnd(x, y) != true ? true : false; in TestAndAsBoolean() 71 public static boolean InlineOr(boolean x, boolean y) { in InlineOr() argument 72 return x | y; in InlineOr() [all …]
|
/art/runtime/base/ |
D | stringpiece.h | 104 int compare(const StringPiece& x) const; 122 bool starts_with(const StringPiece& x) const { in starts_with() argument 123 return ((length_ >= x.length_) && in starts_with() 124 (memcmp(ptr_, x.ptr_, x.length_) == 0)); in starts_with() 128 bool ends_with(const StringPiece& x) const { in ends_with() argument 129 return ((length_ >= x.length_) && in ends_with() 130 (memcmp(ptr_ + (length_-x.length_), x.ptr_, x.length_) == 0)); in ends_with() 161 inline bool operator==(const StringPiece& x, const StringPiece& y) { 162 StringPiece::size_type len = x.size(); 167 const char* p1 = x.data(); [all …]
|
D | logging.h | 112 #define CHECK(x) \ argument 113 if (UNLIKELY(!(x))) \ 115 << "Check failed: " #x << " " 129 #define CHECK_EQ(x, y) CHECK_OP(x, y, ==) argument 130 #define CHECK_NE(x, y) CHECK_OP(x, y, !=) argument 131 #define CHECK_LE(x, y) CHECK_OP(x, y, <=) argument 132 #define CHECK_LT(x, y) CHECK_OP(x, y, <) argument 133 #define CHECK_GE(x, y) CHECK_OP(x, y, >=) argument 134 #define CHECK_GT(x, y) CHECK_OP(x, y, >) argument 165 #define CHECK_CONSTEXPR(x, out, dummy) \ argument [all …]
|
D | bit_utils.h | 30 static constexpr int CLZ(T x) { in CLZ() argument 36 ? __builtin_clz(x) // TODO: __builtin_clz[ll] has undefined behavior for x=0 in CLZ() 37 : __builtin_clzll(x); in CLZ() 41 static constexpr int CTZ(T x) { in CTZ() argument 45 ? __builtin_ctz(x) in CTZ() 46 : __builtin_ctzll(x); in CTZ() 50 static constexpr int POPCOUNT(T x) { in POPCOUNT() argument 52 ? __builtin_popcount(x) in POPCOUNT() 53 : __builtin_popcountll(x); in POPCOUNT() 80 static constexpr inline T RoundUpToPowerOfTwo(T x) { in RoundUpToPowerOfTwo() argument [all …]
|
D | macros.h | 143 #define PACKED(x) __attribute__ ((__aligned__(x), __packed__)) argument 145 #define LIKELY(x) __builtin_expect((x), true) argument 146 #define UNLIKELY(x) __builtin_expect((x), false) argument 149 #define QUOTE(x) #x argument 150 #define STRINGIFY(x) QUOTE(x) argument 240 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument 242 #define THREAD_ANNOTATION_ATTRIBUTE__(x) // no-op argument 248 #define GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x)) argument 251 #define LOCK_RETURNED(x) THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x)) argument 254 #define PT_GUARDED_BY(x) argument
|
/art/test/107-int-math2/src/ |
D | Main.java | 67 static int instanceTest(int x) { in instanceTest() argument 72 x = x + 42; in instanceTest() 76 x = x * 2; in instanceTest() 80 x = x + 13; in instanceTest() 84 x = x -1; in instanceTest() 88 x = x + 1333; in instanceTest() 90 return x; in instanceTest() 98 static int superTest(int x) { in superTest() argument 103 return val1 + val2 + x; in superTest() 106 static int constClassTest(int x) { in constClassTest() argument [all …]
|
/art/test/003-omnibus-opcodes/src/ |
D | IntMath.java | 164 static int[] intOperTest(int x, int y) { in intOperTest() argument 170 results[0] = x + y; in intOperTest() 171 results[1] = x - y; in intOperTest() 172 results[2] = x * y; in intOperTest() 173 results[3] = x * x; in intOperTest() 174 results[4] = x / y; in intOperTest() 175 results[5] = x % -y; in intOperTest() 176 results[6] = x & y; in intOperTest() 177 results[7] = x | y; in intOperTest() 178 results[8] = x ^ y; in intOperTest() [all …]
|
D | FloatMath.java | 135 static float[] floatOperTest(float x, float y) { in floatOperTest() argument 141 results[0] = x + y; in floatOperTest() 142 results[1] = x - y; in floatOperTest() 143 results[2] = x * y; in floatOperTest() 144 results[3] = x / y; in floatOperTest() 145 results[4] = x % -y; in floatOperTest() 148 results[8] = x + (((((x + y) - y) * y) / y) % y); in floatOperTest() 165 static double[] doubleOperTest(double x, double y) { in doubleOperTest() argument 171 results[0] = x + y; in doubleOperTest() 172 results[1] = x - y; in doubleOperTest() [all …]
|
/art/test/ProtoCompare2/ |
D | ProtoCompare2.java | 18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument 19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument 20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument 21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
|
/art/test/ProtoCompare/ |
D | ProtoCompare.java | 18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument 19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument 20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument 21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
|
/art/test/463-checker-boolean-simplifier/src/ |
D | Main.java | 68 public static boolean BooleanNot(boolean x) { in BooleanNot() argument 69 return !x; in BooleanNot() 95 public static boolean GreaterThan(int x, int y) { in GreaterThan() argument 96 return (x <= y) ? false : true; in GreaterThan() 122 public static boolean LessThan(int x, int y) { in LessThan() argument 123 return (x < y) ? true : false; in LessThan() 157 public static boolean ValuesOrdered(int x, int y, int z) { in ValuesOrdered() argument 158 return (x <= y) == (y <= z); in ValuesOrdered() 183 public static int NegatedCondition(boolean x) { in NegatedCondition() argument 184 if (x != false) { in NegatedCondition()
|
/art/test/478-checker-inliner-nested-loop/src/ |
D | Main.java | 26 public static int Inline(int x, int y) { in Inline() argument 28 if (x <= y) { in Inline() 29 result = x * y; in Inline() 45 for (int x = 0; x < max_x; ++x) { in NestedLoop() 47 total += Inline(x, y); in NestedLoop()
|
/art/test/702-LargeBranchOffset/src/ |
D | Main.java.in | 17 #define DO_2_TIMES(x) x x argument 18 #define DO_4_TIMES(x) DO_2_TIMES(DO_2_TIMES(x)) argument 19 #define DO_16_TIMES(x) DO_4_TIMES(DO_4_TIMES(x)) argument 20 #define DO_256_TIMES(x) DO_16_TIMES(DO_16_TIMES(x)) argument 21 #define DO_512_TIMES(x) DO_256_TIMES(DO_2_TIMES(x)) argument
|
/art/test/450-checker-types/src/ |
D | Main.java | 101 public void testIfRemove(int x) { in testIfRemove() argument 103 if (x % 2 == 0) { in testIfRemove() 116 public void testIfKeep(int x) { in testIfKeep() argument 118 if (x % 2 == 0) { in testIfKeep() 131 public void testForRemove(int x) { in testForRemove() argument 133 for (int i = 0 ; i < x; i++) { in testForRemove() 134 if (x % 2 == 0) { in testForRemove() 146 public void testForKeep(int x) { in testForKeep() argument 148 for (int i = 0 ; i < x; i++) { in testForKeep() 149 if (x % 2 == 0) { in testForKeep() [all …]
|
/art/test/476-checker-ctor-memory-barrier/src/ |
D | Main.java | 25 public final int x; field in ClassWithFinals 33 x = 0; in ClassWithFinals() 45 x = 0; in ClassWithFinals() 53 public ClassWithFinals(int x) { in ClassWithFinals() argument 58 this.x = x; in ClassWithFinals()
|
/art/test/472-type-propagation/src/ |
D | Main.java | 24 double x; in ssaBuilderDouble() local 26 x = array[0]; in ssaBuilderDouble() 28 x = array[1]; in ssaBuilderDouble() 30 array[2] = x; in ssaBuilderDouble() 31 System.out.println(x); in ssaBuilderDouble()
|
/art/test/004-ReferenceMap/src/ |
D | Main.java | 22 Object x[] = new Object[2]; in f() local 26 x[2] = y; // out-of-bound exception in f() 29 x[1] = new Object(); in f() 32 x[1] = y; in f() 37 native int refmap(int x); in refmap() argument
|
/art/test/StaticLeafMethods/ |
D | StaticLeafMethods.java | 20 static byte identity(byte x) { in identity() argument 21 return x; in identity() 23 static int identity(int x) { in identity() argument 24 return x; in identity() 38 static double identity(double x) { in identity() argument 39 return x; in identity()
|
/art/test/481-regression-phi-cond/src/ |
D | Main.java | 25 public static boolean inlinePhi(boolean x, boolean y, boolean z) { in inlinePhi() argument 28 phi = x; in inlinePhi() 35 public static boolean dontUseParam(boolean x) { in dontUseParam() argument 39 public static boolean testCase(boolean x, boolean y, boolean z) { in testCase() argument 41 boolean phi = inlinePhi(x, y, z); in testCase()
|
/art/test/NonStaticLeafMethods/ |
D | NonStaticLeafMethods.java | 22 byte identity(byte x) { in identity() argument 23 return x; in identity() 25 int identity(int x) { in identity() argument 26 return x; in identity() 40 double identity(double x) { in identity() argument 41 return x; in identity()
|
/art/test/101-fibonacci/src/ |
D | Main.java | 48 int x = Integer.parseInt(arg); in main() local 49 int y = fibonacci(x); in main() 50 System.out.printf("fibonacci(%d)=%d\n", x, y); in main() 51 y = fibonacci(x + 1); in main() 52 System.out.printf("fibonacci(%d)=%d\n", x + 1, y); in main()
|
/art/test/479-regression-implicit-null-check/src/ |
D | Main.java | 19 public int x = 0; field in Main 35 x = 3; in Main() 39 return x; in willBeInlined()
|
/art/test/455-checker-gvn/src/ |
D | Main.java | 32 public static int foo(int x, int y) { in foo() argument 33 int sum1 = x + y; in foo() 34 int sum2 = y + x; in foo()
|