Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 41) sorted by relevance

12

/art/test/660-checker-simd-sad/src/
DSimdSadChar.java26 private static char sadChar2Char(char[] s1, char[] s2) { in sadChar2Char() argument
27 int min_length = Math.min(s1.length, s2.length); in sadChar2Char()
30 sad += Math.abs(s1[i] - s2[i]); in sadChar2Char()
35 private static char sadChar2CharAlt(char[] s1, char[] s2) { in sadChar2CharAlt() argument
36 int min_length = Math.min(s1.length, s2.length); in sadChar2CharAlt()
40 char p = s2[i]; in sadChar2CharAlt()
46 private static char sadChar2CharAlt2(char[] s1, char[] s2) { in sadChar2CharAlt2() argument
47 int min_length = Math.min(s1.length, s2.length); in sadChar2CharAlt2()
51 char p = s2[i]; in sadChar2CharAlt2()
73 private static int sadChar2Int(char[] s1, char[] s2) { in sadChar2Int() argument
[all …]
DSimdSadShort2.java26 private static short sadCastedChar2Short(char[] s1, char[] s2) { in sadCastedChar2Short() argument
27 int min_length = Math.min(s1.length, s2.length); in sadCastedChar2Short()
30 sad += Math.abs(((short) s1[i]) - ((short) s2[i])); in sadCastedChar2Short()
35 private static short sadCastedChar2ShortAlt(char[] s1, char[] s2) { in sadCastedChar2ShortAlt() argument
36 int min_length = Math.min(s1.length, s2.length); in sadCastedChar2ShortAlt()
40 short p = (short) s2[i]; in sadCastedChar2ShortAlt()
46 private static short sadCastedChar2ShortAlt2(char[] s1, char[] s2) { in sadCastedChar2ShortAlt2() argument
47 int min_length = Math.min(s1.length, s2.length); in sadCastedChar2ShortAlt2()
51 short p = (short) s2[i]; in sadCastedChar2ShortAlt2()
106 private static int sadCastedChar2Int(char[] s1, char[] s2) { in sadCastedChar2Int() argument
[all …]
DSimdSadShort.java28 private static short sadShort2Short(short[] s1, short[] s2) { in sadShort2Short() argument
29 int min_length = Math.min(s1.length, s2.length); in sadShort2Short()
32 sad += Math.abs(s1[i] - s2[i]); in sadShort2Short()
37 private static short sadShort2ShortAlt(short[] s1, short[] s2) { in sadShort2ShortAlt() argument
38 int min_length = Math.min(s1.length, s2.length); in sadShort2ShortAlt()
42 short p = s2[i]; in sadShort2ShortAlt()
48 private static short sadShort2ShortAlt2(short[] s1, short[] s2) { in sadShort2ShortAlt2() argument
49 int min_length = Math.min(s1.length, s2.length); in sadShort2ShortAlt2()
53 short p = s2[i]; in sadShort2ShortAlt2()
92 private static int sadShort2Int(short[] s1, short[] s2) { in sadShort2Int() argument
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestVarious.java330 int s2 = 2; in testDotProdBothSignedUnsigned1() local
335 s2 += (a_val & 0xff) * (b_val & 0xff); in testDotProdBothSignedUnsigned1()
337 return s1 + s2; in testDotProdBothSignedUnsigned1()
397 int s2 = 2; in testDotProdBothSignedUnsigned2() local
401 s2 += (a_val & 0xff) * (b_val & 0xff); in testDotProdBothSignedUnsigned2()
404 return s1 + s2; in testDotProdBothSignedUnsigned2()
465 int s2 = 2; in testDotProdBothSignedUnsignedDoubleLoad() local
468 s2 += (a[i] & 0xff) * (b[i] & 0xff); in testDotProdBothSignedUnsignedDoubleLoad()
470 return s1 + s2; in testDotProdBothSignedUnsignedDoubleLoad()
517 int s2 = 2; in testDotProdBothSignedUnsignedChar() local
[all …]
DTestCharShort.java568 private static void testDotProd(short[] s1, short[] s2, char[] c1, char[] c2, int[] results) { in testDotProd() argument
569 expectEquals(results[0], testDotProdSimple(s1, s2)); in testDotProd()
570 expectEquals(results[1], testDotProdComplex(s1, s2)); in testDotProd()
574 expectEquals(results[5], testDotProdComplexSignedCastedToUnsigned(s1, s2)); in testDotProd()
575 expectEquals(results[6], testDotProdSignedToInt(s1, s2)); in testDotProd()
576 expectEquals(results[7], testDotProdParamSigned(-32768, s2)); in testDotProd()
578 expectEquals(results[9], testDotProdIntParam(-32768, s2)); in testDotProd()
579 expectEquals(results[10], testDotProdSignedToChar(s1, s2)); in testDotProd()
580 expectEquals(results[11], testDotProdSimpleMulCastedToSigned(s1, s2)); in testDotProd()
581 expectEquals(results[12], testDotProdSimpleMulCastedToUnsigned(s1, s2)); in testDotProd()
[all …]
/art/benchmark/stringbuilder-append/src/
DStringBuilderAppendBenchmark.java26 String s2 = string2; in timeAppendStrings() local
29 String result = s1 + s2; in timeAppendStrings()
32 if (sum != count * (s1.length() + s2.length())) { in timeAppendStrings()
39 String s2 = longString2; in timeAppendLongStrings() local
42 String result = s1 + s2; in timeAppendLongStrings()
45 if (sum != count * (s1.length() + s2.length())) { in timeAppendLongStrings()
/art/runtime/arch/
Dmemcmp16_test.cc56 uint16_t *s1, *s2; // Use raw pointers to simplify using clobbered addresses in CheckSeparate() local
96 s2 = new uint16_t[count2]; in CheckSeparate()
99 s2 = reinterpret_cast<uint16_t*>(0xebad2002); in CheckSeparate()
108 s2[i] = s1[i]; in CheckSeparate()
114 s2[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate()
121 s2[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate()
126 uint16_t* s2_pot_unaligned = s2; in CheckSeparate()
151 delete[] s2; in CheckSeparate()
/art/runtime/interpreter/mterp/armng/
Dfloating_point.S20 $instr @ s2<- op
22 SET_VREG_FLOAT s2, r4, lr @ vAA<- s2
41 $instr @ s2<- op
43 SET_VREG_FLOAT_BY_ADDR s2, r4 @ vAA<- s2 No need to clear as it's 2addr
/art/test/952-invoke-custom/src/
DTestBase.java40 static void assertEquals(short s1, short s2) { in assertEquals() argument
41 if (s1 == s2) { in assertEquals()
44 throw new AssertionError("assertEquals s1: " + s1 + ", s2: " + s2); in assertEquals()
/art/runtime/interpreter/mterp/arm/
Dfloating_point.S20 $instr @ s2<- op
22 SET_VREG_FLOAT s2, r9, lr @ vAA<- s2
41 $instr @ s2<- op
43 SET_VREG_FLOAT_BY_ADDR s2, r9 @ vAA<- s2 No need to clear as it's 2addr
/art/test/Statics/
DStatics.java20 static final char s2 = 'a'; field in Statics
35 return s2; in getS2()
/art/test/580-checker-string-fact-intrinsics/src-art/
DMain.java65 String s2 = StringFactory.newStringFromString(s1); in testNewStringFromString() local
66 System.out.println(s2); in testNewStringFromString()
/art/test/004-StackWalk/src/
DMain.java45 String s2 = new String("2"); in shlemiel() local
67 s += s2; in shlemiel()
89 s += s2; in shlemiel()
/art/test/922-properties/src/art/
DTest922.java82 private static boolean equals(String s1, String s2) { in equals() argument
83 if (s1 == null && s2 == null) { in equals()
86 return s1.equals(s2); in equals()
/art/test/699-checker-string-append2/smali/
DB146014745.smali51 # String s2 = sb.append(s).append(i).toString();
58 # return sb.append(s2).toString();
74 # String s2 = sb.append(s).toString();
79 # return sb.append(i).append(s2).append(i);
128 #; String s2 = sb.append(s).append(i).toString();
135 #; return sb.append(s2).toString();
148 #; String s2 = sb.append(s).toString();
154 #; return sb.append(i).append(s2).append(i);
/art/test/020-string/src/
DMain.java59 …String s2 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\uffff\uffff\… in basicTest() local
60 System.out.println("Compare unicode: " + s1.compareTo(s2)); in basicTest()
108 String s2 = new String(byteArray); in constructorTest() local
/art/test/697-checker-string-append/src/
DMain.java189 public static String $noinline$appendStringAndString(String s1, String s2) { in $noinline$appendStringAndString() argument
190 return new StringBuilder().append(s1).append(s2).toString(); in $noinline$appendStringAndString()
/art/test/953-invoke-polymorphic-compiler/src/
DMain.java60 public static void assertEquals(String s1, String s2) { in assertEquals() argument
61 if (s1 == s2) { in assertEquals()
65 if (s1 != null && s2 != null && s1.equals(s2)) { in assertEquals()
69 throw new AssertionError("assertEquals s1: " + s1 + ", s2: " + s2); in assertEquals()
/art/cmdline/
Dcmdline_types.h147 char* s2;
148 size_t val = strtoul(s, &s2, 10);
149 if (s2 != s) {
155 if (*s2 != '\0') {
159 char c = *s2++;
160 if (*s2 == '\0') {
/art/test/115-native-bridge/src/
DNativeBridgeMain.java112 …native static short shortMethod(short s1, short s2, short s3, short s4, short s5, short s6, short … in shortMethod() argument
/art/test/004-JniTest/
Djni_test.cc257 extern "C" jshort JNICALL Java_Main_shortMethod(JNIEnv*, jclass, jshort s1, jshort s2, in Java_Main_shortMethod() argument
261 CHECK_EQ(s2, 2); in Java_Main_shortMethod()
648 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject() local
649 CHECK(s2 != nullptr); in Java_Main_testNewStringObject()
660 env->CallNonvirtualVoidMethod(s2, c, mid2, byte_array); in Java_Main_testNewStringObject()
/art/runtime/
Dreference_table_test.cc286 ObjPtr<mirror::String> s2 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"); in TEST_F() local
291 rt.Add(s2); in TEST_F()
/art/test/957-methodhandle-transforms/src/
DMain.java1658 public static void assertEquals(String s1, String s2) { in assertEquals() argument
1659 if (s1 == s2) { in assertEquals()
1663 if (s1 != null && s2 != null && s1.equals(s2)) { in assertEquals()
1667 throw new AssertionError("assertEquals s1: " + s1 + ", s2: " + s2); in assertEquals()
/art/test/623-checker-loop-regressions/src/
DMain.java553 int s2 = 0; in reduction32Values() local
586 s2 += c[i]; in reduction32Values()
617 return s0 + s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10 + s11 + s12 + s13 + s14 + s15 + in reduction32Values()
/art/test/115-native-bridge/
Dnativebridge.cc154 static jshort trampoline_Java_Main_shortMethod(JNIEnv* env, jclass klass, jshort s1, jshort s2, in trampoline_Java_Main_shortMethod() argument
161 return fnPtr(env, klass, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10); in trampoline_Java_Main_shortMethod()

12