Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/art/test/530-checker-loops1/src/
DMain.java34 private static int linear(int[] x) { in linear() argument
36 for (int i = 0; i < x.length; i++) { in linear()
37 result += x[i]; in linear()
48 private static int linearDown(int[] x) { in linearDown() argument
50 for (int i = x.length - 1; i >= 0; i--) { in linearDown()
51 result += x[i]; in linearDown()
62 private static int linearObscure(int[] x) { in linearObscure() argument
64 for (int i = x.length - 1; i >= 0; i--) { in linearObscure()
66 result += x[k - 5]; in linearObscure()
77 private static int linearVeryObscure(int[] x) { in linearVeryObscure() argument
[all …]
/art/test/660-checker-sad/src/
DSadInt.java34 static int sad1(int x, int y) { in sad1() argument
35 return x >= y ? x - y : y - x; in sad1()
45 static int sad2(int x, int y) { in sad2() argument
46 int diff = x - y; in sad2()
58 static int sad3(int x, int y) { in sad3() argument
59 int diff = x - y; in sad3()
70 static int sad3Alt(int x, int y) { in sad3Alt() argument
71 int diff = x - y; in sad3Alt()
82 static long sadL1(int x, int y) { in sadL1() argument
83 long xl = x; in sadL1()
[all …]
DSadChar.java29 static int sad1(char x, char y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(char x, char y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(char x, char y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(char x, char y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(char x, char y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
DSadShort.java29 static int sad1(short x, short y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(short x, short y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(short x, short y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(short x, short y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(short x, short y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
DSadByte.java29 static int sad1(byte x, byte y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(byte x, byte y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(byte x, byte y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(byte x, byte y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(byte x, byte y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
DSadLong.java34 static long sad1(long x, long y) { in sad1() argument
35 return x >= y ? x - y : y - x; in sad1()
45 static long sad2(long x, long y) { in sad2() argument
46 long diff = x - y; in sad2()
58 static long sad3(long x, long y) { in sad3() argument
59 long diff = x - y; in sad3()
70 static long sad3Alt(long x, long y) { in sad3Alt() argument
71 long diff = x - y; in sad3Alt()
93 long x = interesting[i]; in main() local
95 long e1 = x >= y ? x - y : y - x; // still select in main()
[all …]
/art/test/480-checker-dead-blocks/src/
DMain.java53 public static int testTrueBranch(int x, int y) { in testTrueBranch() argument
56 z = x + y; in testTrueBranch()
58 z = x - y; in testTrueBranch()
85 public static int testFalseBranch(int x, int y) { in testFalseBranch() argument
88 z = x + y; in testFalseBranch()
90 z = x - y; in testFalseBranch()
103 public static int testRemoveLoop(int x) { in testRemoveLoop() argument
105 for (int i = 0; i < x; ++i) { in testRemoveLoop()
106 x *= x; in testRemoveLoop()
109 return x; in testRemoveLoop()
[all …]
/art/test/661-checker-simd-reduc/src/
DMain.java31 private static byte reductionByte(byte[] x) { in reductionByte() argument
33 for (int i = 0; i < x.length; i++) { in reductionByte()
34 sum += x[i]; in reductionByte()
39 private static short reductionShort(short[] x) { in reductionShort() argument
41 for (int i = 0; i < x.length; i++) { in reductionShort()
42 sum += x[i]; in reductionShort()
47 private static char reductionChar(char[] x) { in reductionChar() argument
49 for (int i = 0; i < x.length; i++) { in reductionChar()
50 sum += x[i]; in reductionChar()
116 private static int reductionInt(int[] x) { in reductionInt() argument
[all …]
/art/test/567-checker-builder-intrinsics/src/
DTestMinMax.java526 public static int minmax1(int x) { in minmax1() argument
528 if (x > 100) { in minmax1()
529 x = 100; in minmax1()
531 if (x < -100) { in minmax1()
532 x = -100; in minmax1()
534 return x; in minmax1()
557 public static int minmax2(int x) { in minmax2() argument
559 if (x > 100) { in minmax2()
560 x = 100; in minmax2()
561 } else if (x < -100) { in minmax2()
[all …]
/art/test/660-checker-simd-sad/src/
DSimdSadInt.java60 private static int sadInt2Int(int[] x, int[] y) { in sadInt2Int() argument
61 int min_length = Math.min(x.length, y.length); in sadInt2Int()
64 sad += Math.abs(x[i] - y[i]); in sadInt2Int()
86 private static int sadInt2IntAlt(int[] x, int[] y) { in sadInt2IntAlt() argument
87 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt()
90 int s = x[i]; in sadInt2IntAlt()
135 private static int sadInt2IntAlt2(int[] x, int[] y) { in sadInt2IntAlt2() argument
136 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt2()
139 int s = x[i]; in sadInt2IntAlt2()
183 private static long sadInt2Long(int[] x, int[] y) { in sadInt2Long() argument
[all …]
DSimdSadLong.java55 private static long sadLong2Long(long[] x, long[] y) { in sadLong2Long() argument
56 int min_length = Math.min(x.length, y.length); in sadLong2Long()
59 sad += Math.abs(x[i] - y[i]); in sadLong2Long()
82 private static long sadLong2LongAlt(long[] x, long[] y) { in sadLong2LongAlt() argument
83 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt()
86 long s = x[i]; in sadLong2LongAlt()
126 private static long sadLong2LongAlt2(long[] x, long[] y) { in sadLong2LongAlt2() argument
127 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt2()
130 long s = x[i]; in sadLong2LongAlt2()
172 private static long sadLong2LongAt1(long[] x, long[] y) { in sadLong2LongAt1() argument
[all …]
/art/test/474-checker-boolean-input/src/
DMain.java37 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/test/561-shared-slowpaths/src/
DMain.java27 private static void init(int[] x, int [] y, int l1, int h1, int l2, int h2) { in init() argument
29 x[i] = i; in init()
39 int[] x = new int[100]; in main() local
45 reset(x, y); in main()
47 init(x, y, 0, 100, 0, 100); in main()
53 expectEquals(x[i], i); in main()
59 reset(x, y); in main()
67 expectEquals(x[i], 0); in main()
73 reset(x, y); in main()
75 init(x, y, -1, 100, 0, 100); in main()
[all …]
/art/test/552-checker-x86-avx2-bit-manipulation/src/
DMain.java51 public static long and_not_64( long x, long y) { in and_not_64() argument
55 x = x & ~i; in and_not_64()
58 return x & ~y; in and_not_64()
84 public static int and_not_32( int x, int y) { in and_not_32() argument
88 x = x & ~i; in and_not_32()
91 return x & ~y; in and_not_32()
130 public static int reset_lowest_set_bit_32(int x) { in reset_lowest_set_bit_32() argument
131 int y = x; in reset_lowest_set_bit_32()
171 public static long reset_lowest_set_bit_64(long x) { in reset_lowest_set_bit_64() argument
172 long y = x; in reset_lowest_set_bit_64()
[all …]
/art/test/570-checker-select/src/
DMain.java37 public static int $noinline$BoolCond_IntVarVar(boolean cond, int x, int y) { in $noinline$BoolCond_IntVarVar() argument
38 return cond ? x : y; in $noinline$BoolCond_IntVarVar()
59 public static int $noinline$BoolCond_IntVarCst(boolean cond, int x) { in $noinline$BoolCond_IntVarCst() argument
60 return cond ? x : 1; in $noinline$BoolCond_IntVarCst()
104 public static long $noinline$BoolCond_LongVarVar(boolean cond, long x, long y) { in $noinline$BoolCond_LongVarVar() argument
105 return cond ? x : y; in $noinline$BoolCond_LongVarVar()
127 public static long $noinline$BoolCond_LongVarCst(boolean cond, long x) { in $noinline$BoolCond_LongVarCst() argument
128 return cond ? x : 1L; in $noinline$BoolCond_LongVarCst()
162 public static float $noinline$BoolCond_FloatVarVar(boolean cond, float x, float y) { in $noinline$BoolCond_FloatVarVar() argument
163 return cond ? x : y; in $noinline$BoolCond_FloatVarVar()
[all …]
/art/test/530-checker-loops2/src/
DMain.java54 int[] x = { 1, 3 }; in periodicIdiom() local
59 result += x[k]; in periodicIdiom()
72 int[] x = { 1, 3 }; in periodicSequence2() local
78 result += x[k]; in periodicSequence2()
96 int[] x = { 1, 3, 5, 7 }; in periodicSequence4() local
104 result += x[k] + x[l] + x[m] + x[n]; // all used at once in periodicSequence4()
121 int[] x = { 1, 3 }; in periodicXorSequence() local
126 result += x[k]; in periodicXorSequence()
139 int[] x = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in justRightUp1() local
142 result += x[k++]; in justRightUp1()
[all …]
/art/test/665-checker-simd-zero/src/
DMain.java42 private static void zeroz(boolean[] x) { in zeroz() argument
43 for (int i = 0; i < x.length; i++) { in zeroz()
44 x[i] = false; in zeroz()
68 private static void zerob(byte[] x) { in zerob() argument
69 for (int i = 0; i < x.length; i++) { in zerob()
70 x[i] = 0; in zerob()
94 private static void zeroc(char[] x) { in zeroc() argument
95 for (int i = 0; i < x.length; i++) { in zeroc()
96 x[i] = 0; in zeroc()
120 private static void zeros(short[] x) { in zeros() argument
[all …]
/art/test/674-hiddenapi/src/
DParentClass.java141 public ParentClass(int x, short y) {} in ParentClass() argument
142 ParentClass(float x, short y) {} in ParentClass() argument
143 protected ParentClass(long x, short y) {} in ParentClass() argument
144 private ParentClass(double x, short y) {} in ParentClass() argument
147 public ParentClass(int x, boolean y) {} in ParentClass() argument
148 ParentClass(float x, boolean y) {} in ParentClass() argument
149 protected ParentClass(long x, boolean y) {} in ParentClass() argument
150 private ParentClass(double x, boolean y) {} in ParentClass() argument
153 public ParentClass(int x, byte y) {} in ParentClass() argument
154 ParentClass(float x, byte y) {} in ParentClass() argument
[all …]
/art/test/623-checker-loop-regressions/src/
DMain.java102 short x = 0; in transferNarrowWrap() local
107 w = x; // wrap-around in transferNarrowWrap()
108 x += 2; // narrowing linear in transferNarrowWrap()
125 int x = 0; in polynomialShort() local
127 x = x - i; // polynomial on narrowing linear in polynomialShort()
129 return x; in polynomialShort()
144 int x = 0; in polynomialIntFromLong() local
146 x = x - (int) i; // polynomial on narrowing linear in polynomialIntFromLong()
148 return x; in polynomialIntFromLong()
162 int x = 0; in polynomialInt() local
[all …]
/art/test/620-checker-bce-intrinsics/src/
DMain.java30 int x = 0; in oneArray() local
32 x += a[i]; in oneArray()
34 return x; in oneArray()
44 int x = 0; in oneArrayAbs() local
46 x += a[i]; in oneArrayAbs()
48 return x; in oneArrayAbs()
60 int x = 0; in twoArrays() local
62 x += a[i] + b[i]; in twoArrays()
64 return x; in twoArrays()
76 int x = 0; in threeArrays() local
[all …]
/art/test/661-checker-simd-cf-loops/src/
DMain.java76 public static int $compile$noinline$FullDiamond(int[] x) { in $compile$noinline$FullDiamond() argument
79 int val = x[i]; in $compile$noinline$FullDiamond()
81 x[i] += MAGIC_ADD_CONST; in $compile$noinline$FullDiamond()
83 x[i] += 3; in $compile$noinline$FullDiamond()
85 x[i] += 4; in $compile$noinline$FullDiamond()
102 public static void $compile$noinline$SimpleBoolean(boolean[] x, boolean[] y) { in $compile$noinline$SimpleBoolean() argument
104 boolean val = x[i]; in $compile$noinline$SimpleBoolean()
106 x[i] |= y[i]; in $compile$noinline$SimpleBoolean()
117 public static void $compile$noinline$SimpleByte(byte[] x) { in $compile$noinline$SimpleByte() argument
119 byte val = x[i]; in $compile$noinline$SimpleByte()
[all …]
/art/test/463-checker-boolean-simplifier/src-art/
DMain.java61 public static boolean GreaterThan(int x, int y) { in GreaterThan() argument
62 return (x <= y) ? false : true; in GreaterThan()
89 public static boolean LessThan(int x, int y) { in LessThan() argument
90 return (x < y) ? true : false; in LessThan()
105 public static int SimpleTrueBlock(boolean x, int y) { in SimpleTrueBlock() argument
106 return x ? y + 42 : 43; in SimpleTrueBlock()
121 public static int SimpleFalseBlock(boolean x, int y) { in SimpleFalseBlock() argument
122 return x ? 42 : y + 43; in SimpleFalseBlock()
139 public static int SimpleBothBlocks(boolean x, int y, int z) { in SimpleBothBlocks() argument
140 return x ? y + 42 : z + 43; in SimpleBothBlocks()
[all …]
/art/libartbase/base/
Druntime_debug.h43 #define DECLARE_RUNTIME_DEBUG_FLAG(x) \ argument
44 static constexpr bool x = false;
47 #define DEFINE_RUNTIME_DEBUG_FLAG(C, x) \ argument
48 static_assert(!C::x, "Unexpected enabled flag in release build");
50 #define DECLARE_RUNTIME_DEBUG_FLAG(x) \
51 static bool x;
52 #define DEFINE_RUNTIME_DEBUG_FLAG(C, x) \
53 bool C::x = RegisterRuntimeDebugFlag(&C::x);
/art/test/674-hiddenapi/src-ex/
DLinking.java74 public static void access(int x) { in access() argument
76 new ParentClass().fieldPublicSdkB = x; in access()
81 public static void access(int x) { in access() argument
83 new ParentClass().fieldPublicUnsupportedB = x; in access()
88 public static void access(int x) { in access() argument
90 new ParentClass().fieldPublicConditionallyBlockedB = x; in access()
95 public static void access(int x) { in access() argument
97 new ParentClass().fieldPublicBlocklistB = x; in access()
102 public static void access(int x) { in access() argument
104 new ParentClass().fieldPublicBlocklistAndCorePlatformApiB = x; in access()
[all …]
/art/test/107-int-math2/src/
DMain.java69 static int instanceTest(int x) { in instanceTest() argument
74 x = x + 42; in instanceTest()
78 x = x * 2; in instanceTest()
82 x = x + 13; in instanceTest()
86 x = x -1; in instanceTest()
90 x = x + 1333; in instanceTest()
92 return x; in instanceTest()
100 static int superTest(int x) { in superTest() argument
105 return val1 + val2 + x; in superTest()
108 static int constClassTest(int x) { in constClassTest() argument
[all …]

12345678910>>...12