Home
last modified time | relevance | path

Searched refs:b2 (Results 1 – 25 of 32) sorted by relevance

12

/art/test/660-checker-simd-sad/src/
DSimdSadByte.java24 private static byte sadByte2Byte(byte[] b1, byte[] b2) { in sadByte2Byte() argument
25 int min_length = Math.min(b1.length, b2.length); in sadByte2Byte()
28 sad += Math.abs(b1[i] - b2[i]); in sadByte2Byte()
33 private static byte sadByte2ByteAlt(byte[] b1, byte[] b2) { in sadByte2ByteAlt() argument
34 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt()
38 byte p = b2[i]; in sadByte2ByteAlt()
44 private static byte sadByte2ByteAlt2(byte[] b1, byte[] b2) { in sadByte2ByteAlt2() argument
45 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt2()
49 byte p = b2[i]; in sadByte2ByteAlt2()
57 private static short sadByte2Short(byte[] b1, byte[] b2) { in sadByte2Short() argument
[all …]
/art/test/646-checker-simd-hadd/src/
DHaddShort.java63 private static void halving_add_signed(short[] b1, short[] b2, short[] bo) { in halving_add_signed() argument
64 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
66 bo[i] = (short) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
104 private static void halving_add_signed_alt(short[] b1, short[] b2, short[] bo) { in halving_add_signed_alt() argument
105 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed_alt()
108 bo[i] = (short) (((b1[i] + 10) + (b2[i] - 10)) >> 1); in halving_add_signed_alt()
155 private static void halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in halving_add_unsigned() argument
156 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
159 int v2 = b2[i] & 0xffff; in halving_add_unsigned()
195 private static void rounding_halving_add_signed(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed() argument
[all …]
DHaddAltChar.java62 private static void halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_unsigned() argument
63 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
65 bo[i] = (char) ((b1[i] + b2[i]) >>> 1); in halving_add_unsigned()
116 private static void halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_also_unsigned() argument
117 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_also_unsigned()
119 bo[i] = (char) (((b1[i] & 0xffff) + (b2[i] & 0xffff)) >>> 1); in halving_add_also_unsigned()
154 private static void rounding_halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_unsigned() argument
155 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
157 bo[i] = (char) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_unsigned()
210 private static void rounding_halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_also_unsigned() argument
[all …]
DHaddAltShort.java62 private static void halving_add_signed(short[] b1, short[] b2, short[] bo) { in halving_add_signed() argument
63 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
65 bo[i] = (short) ((b1[i] + b2[i]) >>> 1); in halving_add_signed()
112 private static void halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in halving_add_unsigned() argument
113 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
116 int v2 = b2[i] & 0xffff; in halving_add_unsigned()
152 private static void rounding_halving_add_signed(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed() argument
153 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
155 bo[i] = (short) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_signed()
204 private static void rounding_halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_unsigned() argument
[all …]
DHaddChar.java59 private static void halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_unsigned() argument
60 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
62 bo[i] = (char) ((b1[i] + b2[i]) >> 1); in halving_add_unsigned()
112 private static void halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_also_unsigned() argument
113 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_also_unsigned()
115 bo[i] = (char) (((b1[i] & 0xffff) + (b2[i] & 0xffff)) >> 1); in halving_add_also_unsigned()
150 private static void rounding_halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_unsigned() argument
151 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
153 bo[i] = (char) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_unsigned()
205 private static void rounding_halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_also_unsigned() argument
[all …]
DHaddByte.java59 private static void halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in halving_add_signed() argument
60 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
62 bo[i] = (byte) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
109 private static void halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in halving_add_unsigned() argument
110 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
112 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff)) >> 1); in halving_add_unsigned()
147 private static void rounding_halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_signed() argument
148 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
150 bo[i] = (byte) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_signed()
199 private static void rounding_halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_unsigned() argument
[all …]
DHaddAltByte.java62 private static void halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in halving_add_signed() argument
63 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
65 bo[i] = (byte) ((b1[i] + b2[i]) >>> 1); in halving_add_signed()
112 private static void halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in halving_add_unsigned() argument
113 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
115 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff)) >>> 1); in halving_add_unsigned()
150 private static void rounding_halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_signed() argument
151 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
153 bo[i] = (byte) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_signed()
202 private static void rounding_halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_unsigned() argument
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestByte.java574 private static void testDotProd(byte[] b1, byte[] b2, int[] results) { in testDotProd() argument
575 expectEquals(results[0], testDotProdSimple(b1, b2)); in testDotProd()
576 expectEquals(results[1], testDotProdComplex(b1, b2)); in testDotProd()
577 expectEquals(results[2], testDotProdSimpleUnsigned(b1, b2)); in testDotProd()
578 expectEquals(results[3], testDotProdComplexUnsigned(b1, b2)); in testDotProd()
579 expectEquals(results[4], testDotProdComplexUnsignedCastedToSigned(b1, b2)); in testDotProd()
580 expectEquals(results[5], testDotProdComplexSignedCastedToUnsigned(b1, b2)); in testDotProd()
581 expectEquals(results[6], testDotProdSignedWidening(b1, b2)); in testDotProd()
582 expectEquals(results[7], testDotProdParamSigned(-128, b2)); in testDotProd()
583 expectEquals(results[8], testDotProdParamUnsigned(-128, b2)); in testDotProd()
[all …]
DTestVarious.java538 byte[] b2 = { 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 127, 127, 127 }; in run()
548 expectEquals(56516, testDotProdConstRight(b2)); in run()
549 expectEquals(56516, testDotProdConstLeft(b2)); in run()
550 expectEquals(1271, testDotProdLoopInvariantConvRight(b2, 129)); in run()
555 expectEquals(3, testDotProdBothSignedUnsigned1(b1, b2)); in run()
556 expectEquals(54403, testDotProdBothSignedUnsigned2(b1, b2)); in run()
557 expectEquals(3, testDotProdBothSignedUnsignedDoubleLoad(b1, b2)); in run()
/art/test/476-checker-ctor-fence-redun-elim/src/
DMain.java214 Base b2 = new Base(); in exercise() local
218 external2 = b2; in exercise()
264 Base b2 = new ThreeFinal(4, 5, 6); in exercise() local
268 b2.w0 = 7; in exercise()
273 external2 = b2; in exercise()
316 Base b2 = new Base(); in exercise() local
320 external2 = b2; in exercise()
359 Base b2 = new Base(); in exercise() local
363 external4 = b2; in exercise()
413 Base b2 = new Base(); in exercise() local
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java56 int b2 = readUnsignedByte(); in readUShort() local
57 return (short) ((b2 << 8) | b1); in readUShort()
65 int b2 = (value & 0xff00) >> 8; in writeUShort() local
67 writeByte(b2); in writeUShort()
75 int b2 = readUnsignedByte(); in readUInt() local
78 return (b4 << 24) | (b3 << 16) | (b2 << 8) | b1; in readUInt()
87 int b2 = (value & 0xff00) >> 8; in writeUInt() local
88 writeByte(b2); in writeUInt()
/art/test/952-invoke-custom/src/
DTestBase.java26 static void assertEquals(byte b1, byte b2) { in assertEquals() argument
27 if (b1 == b2) { in assertEquals()
30 throw new AssertionError("assertEquals b1: " + b1 + ", b2: " + b2); in assertEquals()
/art/test/805-TooDeepClassInstanceOf/src/
DMain.java38 A b2 = new B2(); in main() local
51 expectFalse(b2 instanceof G1); in main()
53 expectFalse(b2 instanceof F1); in main()
/art/test/168-vmstack-annotated/src/
DMain.java122 LinkedList<CyclicBarrier> b2 = new LinkedList<>(); in testCluster1() local
141 b2.add(null); in testCluster1()
142 b2.add(c1); in testCluster1()
143 b2.add(c2); in testCluster1()
148 Thread t2 = new Thread(new Runner(l2, b2)); in testCluster1()
/art/test/515-dce-dominator/smali/
DDominator.smali24 :b2
27 if-eq v0, p0, :b2
/art/test/115-native-bridge/src/
DNativeBridgeMain.java97 native static byte byteMethod(byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, in byteMethod() argument
129 …native static boolean booleanMethod(boolean b1, boolean b2, boolean b3, boolean b4, boolean b5, bo… in booleanMethod() argument
/art/test/115-native-bridge/
Dnativebridge.cc144 static jbyte trampoline_Java_Main_byteMethod(JNIEnv* env, jclass klass, jbyte b1, jbyte b2, in trampoline_Java_Main_byteMethod() argument
151 return fnPtr(env, klass, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10); in trampoline_Java_Main_byteMethod()
165 jboolean b2, jboolean b3, jboolean b4, in trampoline_Java_Main_booleanMethod() argument
172 return fnPtr(env, klass, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10); in trampoline_Java_Main_booleanMethod()
/art/test/004-JniTest/src/
DMain.java152 static native byte byteMethod(byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, in byteMethod() argument
190 …private static native boolean booleanMethod(boolean b1, boolean b2, boolean b3, boolean b4, boolea… in booleanMethod() argument
/art/test/906-iterate-heap/src/art/
DTest906.java130 B b2 = new B(); in doTest() local
137 setTag(b2, 3); in doTest()
/art/test/004-JniTest/
Djni_test.cc232 extern "C" jbyte JNICALL Java_Main_byteMethod(JNIEnv*, jclass, jbyte b1, jbyte b2, in Java_Main_byteMethod() argument
236 CHECK_EQ(b2, 2); in Java_Main_byteMethod()
278 jboolean b2, jboolean b3, jboolean b4, in Java_Main_booleanMethod() argument
282 CHECK_EQ(b2, JNI_TRUE); in Java_Main_booleanMethod()
/art/test/712-varhandle-invocations/src/
DVarHandleArrayTests.java133 private int toHost(ByteOrder order, byte b0, byte b1, byte b2, byte b3) { in toHost() argument
136 final int u2 = Byte.toUnsignedInt(b2); in toHost()
/art/test/623-checker-loop-regressions/src/
DMain.java1109 byte[] b2 = new byte[259]; in main()
1112 b2[i] = (byte) i; in main()
1114 typeConv(b1, b2); in main()
/art/compiler/optimizing/
Dinduction_var_range.cc272 bool b1, b2; // unused in GenerateRange() local
283 &b2)) { in GenerateRange()
295 bool b1, b2; // unused in GenerateTakenTest() local
306 &b2)) { in GenerateTakenTest()
339 bool b1, b2; // unused in GenerateLastValue() local
350 &b2)) { in GenerateLastValue()
/art/compiler/utils/
Dassembler_thumb_test_expected.cc.inc59 " b2: 4604 mov r4, r0\n"
129 " 1b2: f8cd c7ff str.w r12, [sp, #2047]\n"
/art/test/dexdump/
Dcheckers.txt177 0015b2: 6f20 0300 a900 |0005: invoke-super {v9, v10}, Landroid/app/Activity…
237 0016b2: 7250 2c00 5a88 |0085: invoke-interface {v10, v5, v8, v8, v0}, Landr…
259 00170c: 1a03 5e00 |00b2: const-string v3, "Level 6 (30s)" // string@00…
311 0017b2: 28e8 |0025: goto 000d // -0018
476 0019b2: 6e10 5d00 0100 |000f: invoke-virtual {v1}, Lcom/google/android/chec…
892 001d60: 6200 6800 |01b2: sget-object v0, Lcom/google/android/checkers/…
1326 0022b2: 54a1 0a00 |00b5: iget-object v1, v10, Lcom/google/android/chec…
1680 00275c: 5990 2800 |01b2: iput v0, v9, Lcom/google/android/checkers/Che…
1707 0027b2: 5990 2300 |01dd: iput v0, v9, Lcom/google/android/checkers/Che…
1778 0028b2: b587 |025d: and-int/2addr v7, v8
[all …]

12