Home
last modified time | relevance | path

Searched refs:b1 (Results 1 – 25 of 29) 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()
37 byte s = b1[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()
48 byte s = b1[i]; in sadByte2ByteAlt2()
57 private static short sadByte2Short(byte[] b1, byte[] b2) { in sadByte2Short() argument
[all …]
/art/test/646-checker-simd-hadd/src/
DHaddShort.java48 private static void halving_add_signed(short[] b1, short[] b2, short[] bo) { in halving_add_signed() argument
49 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
51 bo[i] = (short) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
74 private static void halving_add_signed_alt(short[] b1, short[] b2, short[] bo) { in halving_add_signed_alt() argument
75 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed_alt()
78 bo[i] = (short) (((b1[i] + 10) + (b2[i] - 10)) >> 1); in halving_add_signed_alt()
110 private static void halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in halving_add_unsigned() argument
111 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
113 int v1 = b1[i] & 0xffff; in halving_add_unsigned()
135 private static void rounding_halving_add_signed(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed() argument
[all …]
DHaddAltChar.java47 private static void halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_unsigned() argument
48 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
50 bo[i] = (char) ((b1[i] + b2[i]) >>> 1); in halving_add_unsigned()
86 private static void halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_also_unsigned() argument
87 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_also_unsigned()
89 bo[i] = (char) (((b1[i] & 0xffff) + (b2[i] & 0xffff)) >>> 1); in halving_add_also_unsigned()
109 private static void rounding_halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_unsigned() argument
110 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
112 bo[i] = (char) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_unsigned()
149 private static void rounding_halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_also_unsigned() argument
[all …]
DHaddAltShort.java47 private static void halving_add_signed(short[] b1, short[] b2, short[] bo) { in halving_add_signed() argument
48 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
50 bo[i] = (short) ((b1[i] + b2[i]) >>> 1); in halving_add_signed()
82 private static void halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in halving_add_unsigned() argument
83 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
85 int v1 = b1[i] & 0xffff; in halving_add_unsigned()
107 private static void rounding_halving_add_signed(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed() argument
108 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
110 bo[i] = (short) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_signed()
144 private static void rounding_halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_unsigned() argument
[all …]
DHaddChar.java50 private static void halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_unsigned() argument
51 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
53 bo[i] = (char) ((b1[i] + b2[i]) >> 1); in halving_add_unsigned()
94 private static void halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in halving_add_also_unsigned() argument
95 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_also_unsigned()
97 bo[i] = (char) (((b1[i] & 0xffff) + (b2[i] & 0xffff)) >> 1); in halving_add_also_unsigned()
123 private static void rounding_halving_add_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_unsigned() argument
124 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
126 bo[i] = (char) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_unsigned()
169 private static void rounding_halving_add_also_unsigned(char[] b1, char[] b2, char[] bo) { in rounding_halving_add_also_unsigned() argument
[all …]
DHaddByte.java44 private static void halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in halving_add_signed() argument
45 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
47 bo[i] = (byte) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
79 private static void halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in halving_add_unsigned() argument
80 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
82 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff)) >> 1); in halving_add_unsigned()
102 private static void rounding_halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_signed() argument
103 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
105 bo[i] = (byte) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_signed()
139 private static void rounding_halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_unsigned() argument
[all …]
DHaddAltByte.java47 private static void halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in halving_add_signed() argument
48 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
50 bo[i] = (byte) ((b1[i] + b2[i]) >>> 1); in halving_add_signed()
82 private static void halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in halving_add_unsigned() argument
83 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
85 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff)) >>> 1); in halving_add_unsigned()
105 private static void rounding_halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_signed() argument
106 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
108 bo[i] = (byte) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_signed()
142 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.java431 private static void testDotProd(byte[] b1, byte[] b2, int[] results) { in testDotProd() argument
432 expectEquals(results[0], testDotProdSimple(b1, b2)); in testDotProd()
433 expectEquals(results[1], testDotProdComplex(b1, b2)); in testDotProd()
434 expectEquals(results[2], testDotProdSimpleUnsigned(b1, b2)); in testDotProd()
435 expectEquals(results[3], testDotProdComplexUnsigned(b1, b2)); in testDotProd()
436 expectEquals(results[4], testDotProdComplexUnsignedCastedToSigned(b1, b2)); in testDotProd()
437 expectEquals(results[5], testDotProdComplexSignedCastedToUnsigned(b1, b2)); in testDotProd()
438 expectEquals(results[6], testDotProdSignedWidening(b1, b2)); in testDotProd()
442 expectEquals(results[10], testDotProdSignedToChar(b1, b2)); in testDotProd()
443 expectEquals(results[11], testDotProdSimpleCastedToSignedByte(b1, b2)); in testDotProd()
[all …]
DTestVarious.java395 byte[] b1 = { -128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -128, -128, -128, -128 }; in run()
410 expectEquals(-8388351, testDotProdMixedSize(b1, s1)); in run()
411 expectEquals(-8388351, testDotProdMixedSizeAndSign(b1, c2)); in run()
413 expectEquals(3, testDotProdBothSignedUnsigned1(b1, b2)); in run()
414 expectEquals(54403, testDotProdBothSignedUnsigned2(b1, b2)); in run()
415 expectEquals(3, testDotProdBothSignedUnsignedDoubleLoad(b1, b2)); in run()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java55 int b1 = readUnsignedByte(); in readUShort() local
57 return (short) ((b2 << 8) | b1); in readUShort()
64 int b1 = value & 0xff; in writeUShort() local
66 writeByte(b1); in writeUShort()
74 int b1 = readUnsignedByte(); in readUInt() local
78 return (b4 << 24) | (b3 << 16) | (b2 << 8) | b1; in readUInt()
85 int b1 = value & 0xff; in writeUInt() local
86 writeByte(b1); in writeUInt()
/art/test/530-checker-loops3/src/
DMain.java298 int b1[] = { 100 }; in main() local
305 oneConstantIndex(a, b1); in main()
315 multipleConstantIndices(a, b1); in main()
325 oneInvariantIndex(a, b1, 1); in main()
335 multipleInvariantIndices(a, b1, 1); in main()
345 oneUnitStride(a, b1); in main()
356 multipleUnitStrides(a, b1); in main()
367 multipleUnitStridesConditional(a, b1); in main()
/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.java37 A b1 = new B1(); in main() local
46 expectFalse(b1 instanceof G1); in main()
48 expectFalse(b1 instanceof F1); in main()
/art/test/168-vmstack-annotated/src/
DMain.java116 LinkedList<CyclicBarrier> b1 = new LinkedList<>(); in testCluster1() local
134 b1.add(c1); in testCluster1()
135 b1.add(null); in testCluster1()
136 b1.add(c2); in testCluster1()
141 Thread t1 = new Thread(new Runner(l1, b1)); in testCluster1()
/art/test/516-dead-move-result/smali/
DMoveResult.smali21 goto :b1
23 :b1
/art/runtime/native/
Dlibcore_util_CharsetUtils.cc235 jbyte b1 = (ch >> 18) | 0xf0; in CharsetUtils_toUtf8Bytes() local
239 if (!out.append(b1) || !out.append(b2) || !out.append(b3) || !out.append(b4)) { in CharsetUtils_toUtf8Bytes()
244 jbyte b1 = (ch >> 12) | 0xe0; in CharsetUtils_toUtf8Bytes() local
247 if (!out.append(b1) || !out.append(b2) || !out.append(b3)) { in CharsetUtils_toUtf8Bytes()
/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/623-checker-loop-regressions/src/
DMain.java702 byte[] b1 = new byte[259]; // few extra iterations in main()
705 b1[i] = 0; in main()
708 typeConv(b1, b2); in main()
710 expectEquals((byte)(i + 1), b1[i]); in main()
757 castAndNarrow(b1, cx); in main()
759 expectEquals((byte)((short) cx[i] + 1), b1[i]); in main() local
/art/test/004-JniTest/
Djni_test.cc203 extern "C" jbyte JNICALL Java_Main_byteMethod(JNIEnv*, jclass, jbyte b1, jbyte b2, in Java_Main_byteMethod() argument
217 CHECK_LE(0, b1); in Java_Main_byteMethod()
218 CHECK_LT(b1, static_cast<jbyte>(kByteReturnSize)); in Java_Main_byteMethod()
220 return byte_returns[b1]; in Java_Main_byteMethod()
248 extern "C" jboolean JNICALL Java_Main_booleanMethod(JNIEnv*, jclass, jboolean b1, in Java_Main_booleanMethod() argument
263 CHECK(b1 == JNI_TRUE || b1 == JNI_FALSE); in Java_Main_booleanMethod()
264 return b1; in Java_Main_booleanMethod()
/art/test/515-dce-dominator/smali/
DDominator.smali22 :b1
/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()
164 static jboolean trampoline_Java_Main_booleanMethod(JNIEnv* env, jclass klass, jboolean b1, 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.java147 static native byte byteMethod(byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, in byteMethod() argument
185 …private static native boolean booleanMethod(boolean b1, boolean b2, boolean b3, boolean b4, boolea… in booleanMethod() argument
/art/compiler/optimizing/
Dinduction_var_range.cc260 bool b1, b2; // unused in GenerateRange() local
270 &b1, in GenerateRange()
282 bool b1, b2; // unused in GenerateTakenTest() local
292 &b1, in GenerateTakenTest()
324 bool b1, b2; // unused in GenerateLastValue() local
334 &b1, in GenerateLastValue()
/art/test/565-checker-doublenegbitwise/smali/
DSmaliTests.smali252 # int b1 = b + 1;
254 # int not_b1 = ~b1;
743 # int b1 = b + 1;
744 # int not_b1 = ~b1;
778 .local v1, "b1":I
/art/tools/jvmti-agents/ti-fast/
Dtifast.cc94 …v* jni, jthread thread, jobject obj, jboolean b1), (jvmti, jni, jthreadContainer{.thread = thread}…

12