Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 50) sorted by relevance

12

/art/test/660-checker-simd-sad-short2/src/
DMain.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()
39 short s = (short) s1[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()
50 short s = (short) s1[i]; in sadCastedChar2ShortAlt2()
97 private static int sadCastedChar2Int(char[] s1, char[] s2) { in sadCastedChar2Int() argument
[all …]
/art/test/660-checker-simd-sad-char/src/
DMain.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()
39 char s = s1[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()
50 char s = s1[i]; in sadChar2CharAlt2()
73 private static int sadChar2Int(char[] s1, char[] s2) { in sadChar2Int() argument
[all …]
/art/test/660-checker-simd-sad-short/src/
DMain.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()
41 short s = s1[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()
52 short s = s1[i]; in sadShort2ShortAlt2()
83 private static int sadShort2Int(short[] s1, short[] s2) { in sadShort2Int() argument
[all …]
/art/runtime/arch/
Dmemcmp16.cc22 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
23 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_generic_static() argument
25 if (s0[i] != s1[i]) { in memcmp16_generic_static()
26 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in memcmp16_generic_static()
36 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16Testing() argument
37 return MemCmp16(s0, s1, count); in MemCmp16Testing()
Dmemcmp16.h35 extern "C" uint32_t __memcmp16(const uint16_t* s0, const uint16_t* s1, size_t count);
41 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16() argument
43 if (s0[i] != s1[i]) { in MemCmp16()
44 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in MemCmp16()
50 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
60 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);
Dmemcmp16_test.cc38 int32_t memcmp16_compare(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_compare() argument
40 if (s0[i] != s1[i]) { in memcmp16_compare()
41 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in memcmp16_compare()
56 uint16_t *s1, *s2; // Use raw pointers to simplify using clobbered addresses in CheckSeparate() local
89 s1 = new uint16_t[count1]; in CheckSeparate()
92 s1 = reinterpret_cast<uint16_t*>(0xebad1001); in CheckSeparate()
107 s1[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate()
108 s2[i] = s1[i]; in CheckSeparate()
111 s1[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate()
118 s1[i] = static_cast<uint16_t>(r.next() & 0xFFFF); in CheckSeparate()
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestVarious.java237 int s1 = 1; in testDotProdBothSignedUnsigned1() local
242 s1 += a_val * b_val; in testDotProdBothSignedUnsigned1()
245 return s1 + s2; in testDotProdBothSignedUnsigned1()
284 int s1 = 1; in testDotProdBothSignedUnsigned2() local
290 s1 += a_val * 42; in testDotProdBothSignedUnsigned2()
292 return s1 + s2; in testDotProdBothSignedUnsigned2()
331 int s1 = 1; in testDotProdBothSignedUnsignedDoubleLoad() local
334 s1 += a[i] * b[i]; in testDotProdBothSignedUnsignedDoubleLoad()
337 return s1 + s2; in testDotProdBothSignedUnsignedDoubleLoad()
374 int s1 = 1; in testDotProdBothSignedUnsignedChar() local
[all …]
DTestCharShort.java478 private static void testDotProd(short[] s1, short[] s2, char[] c1, char[] c2, int[] results) { in testDotProd() argument
479 expectEquals(results[0], testDotProdSimple(s1, s2)); in testDotProd()
480 expectEquals(results[1], testDotProdComplex(s1, s2)); in testDotProd()
484 expectEquals(results[5], testDotProdComplexSignedCastedToUnsigned(s1, s2)); in testDotProd()
485 expectEquals(results[6], testDotProdSignedToInt(s1, s2)); in testDotProd()
489 expectEquals(results[10], testDotProdSignedToChar(s1, s2)); in testDotProd()
490 expectEquals(results[11], testDotProdSimpleMulCastedToSigned(s1, s2)); in testDotProd()
491 expectEquals(results[12], testDotProdSimpleMulCastedToUnsigned(s1, s2)); in testDotProd()
494 expectEquals(results[15], testDotProdSimpleCastedToShort(s1, s2)); in testDotProd()
495 expectEquals(results[16], testDotProdSimpleCastedToChar(s1, s2)); in testDotProd()
[all …]
/art/test/473-remove-dead-block/src/
DMain.java24 int s1=26294; in test() local
33 i1 = i1 * 26295 + (s1 / 26295); in test()
/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/test/Statics/
DStatics.java19 static final byte s1 = 5; field in Statics
32 return s1; in getS1()
/art/test/580-checker-string-fact-intrinsics/src-art/
DMain.java64 String s1 = "baz"; in testNewStringFromString() local
65 String s2 = StringFactory.newStringFromString(s1); in testNewStringFromString()
/art/libdexfile/external/include/art_api/
Ddex_file_support.h98 inline bool operator==(const DexString& s1, const DexString& s2) {
100 const char* str1 = DexString::g_ExtDexFileGetString(s1.ext_string_, &l1);
112 inline bool operator==(const MethodInfo& s1, const MethodInfo& s2) {
113 return s1.offset == s2.offset && s1.len == s2.len && s1.name == s2.name;
/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()
85 } else if (s1 != null) { in equals()
86 return s1.equals(s2); in equals()
/art/compiler/utils/
Dassembler_thumb_test.cc59 int CompareIgnoringSpace(const char* s1, const char* s2) { in CompareIgnoringSpace() argument
60 while (*s1 != '\0') { in CompareIgnoringSpace()
61 while (isspace(*s1)) ++s1; in CompareIgnoringSpace()
63 if (*s1 == '\0' || *s1 != *s2) { in CompareIgnoringSpace()
66 ++s1; in CompareIgnoringSpace()
69 return *s1 - *s2; in CompareIgnoringSpace()
/art/runtime/interpreter/mterp/arm/
Dfloating_point.S16 GET_VREG_FLOAT_BY_ADDR s1, r3 @ s1<- vCC
38 GET_VREG_FLOAT_BY_ADDR s1, r3 @ s1<- vB
/art/libdexfile/external/
Ddex_file_supp_test.cc63 auto s1 = DexString("foo"); in TEST() local
64 auto s2 = DexString(std::move(s1)); in TEST()
65 EXPECT_TRUE(std::string_view(s1).empty()); in TEST()
70 auto s1 = DexString("foo"); in TEST() local
73 s2 = std::move(s1); in TEST()
74 EXPECT_TRUE(std::string_view(s1).empty()); in TEST()
/art/test/020-string/src/
DMain.java58 …String s1 = "\u0c6d\u0cb6\u0d00\u0000\u0080\u0080\u0080\u0000\u0002\u0002\u0002\u0000\u00e9\u00e9\… in basicTest() local
60 System.out.println("Compare unicode: " + s1.compareTo(s2)); in basicTest()
107 String s1 = new String(); in constructorTest() local
/art/test/004-StackWalk/src/
DMain.java44 String s1 = new String("1"); in shlemiel() local
66 s += s1; in shlemiel()
/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/runtime/interpreter/mterp/arm64/
Dfloating_point.S12 GET_VREG s1, w1
49 GET_VREG s1, w3
299 GET_VREG s1, w3
/art/runtime/arch/mips/
Djni_entrypoints_mips.S44 move $a0, $s1 # pass Thread::Current()
/art/runtime/arch/mips64/
Djni_entrypoints_mips64.S47 move $a0, $s1 # pass Thread::Current()
/art/compiler/optimizing/
Doptimizing_cfi_test_expected.inc155 // 0x00000008: sw s1, +56(sp)
164 // 0x0000001c: lw s1, +56(sp)
192 // 0x00000008: sd s1, +48(sp)
203 // 0x0000001c: ld s1, +48(sp)
352 // 0x00000008: sw s1, +56(sp)
376 // 0x00020048: lw s1, +56(sp)
408 // 0x00000008: sd s1, +48(sp)
425 // 0x0002002c: ld s1, +48(sp)
/art/test/004-JniTest/
Djni_test.cc228 extern "C" jshort JNICALL Java_Main_shortMethod(JNIEnv*, jclass, jshort s1, jshort s2, in Java_Main_shortMethod() argument
242 CHECK_LE(0, s1); in Java_Main_shortMethod()
243 CHECK_LT(s1, static_cast<jshort>(kShortReturnSize)); in Java_Main_shortMethod()
245 return short_returns[s1]; in Java_Main_shortMethod()
617 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject() local
618 CHECK(s1 != nullptr); in Java_Main_testNewStringObject()
630 env->CallVoidMethod(s1, mid1); in Java_Main_testNewStringObject()

12