Home
last modified time | relevance | path

Searched refs:aligned (Results 1 – 4 of 4) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java44 @Param({"true", "false"}) private boolean aligned; field in ByteBufferBenchmark
51 …public static ByteBuffer newBuffer(MyByteOrder byteOrder, boolean aligned, MyBufferType bufferType… in newBuffer() argument
52 int size = aligned ? 8192 : 8192 + 8 + 1; in newBuffer()
76 result.position(aligned ? 0 : 1); in newBuffer()
85 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte()
87 src.position(aligned ? 0 : 1); in timeByteBuffer_getByte()
95 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByteArray()
99 src.position(aligned ? 0 : 1); in timeByteBuffer_getByteArray()
106 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte_indexed()
108 src.position(aligned ? 0 : 1); in timeByteBuffer_getByte_indexed()
[all …]
DByteBufferScalarVersusVectorBenchmark.java24 @Param({"true", "false"}) private boolean aligned; field in ByteBufferScalarVersusVectorBenchmark
28 ByteBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy()
29 ByteBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy()
40 ByteBuffer src = ByteBuffer.allocate(aligned ? 8192 : 8192 + 1); in timeByteBufferBulkGet()
43 src.position(aligned ? 0 : 1); in timeByteBufferBulkGet()
49 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1); in timeDirectByteBufferBulkGet()
52 src.position(aligned ? 0 : 1); in timeDirectByteBufferBulkGet()
DByteBufferBulkBenchmark.java34 @Param({"true", "false"}) private boolean aligned; field in ByteBufferBulkBenchmark
45 …public static ByteBuffer newBuffer(boolean aligned, MyBufferType bufferType, int bsize) throws IOE… in newBuffer() argument
46 int size = aligned ? bsize : bsize + 8 + 1; in newBuffer()
65 result.position(aligned ? 0 : 1); in newBuffer()
70 ByteBuffer src = ByteBufferBulkBenchmark.newBuffer(aligned, srcBufferType, bufferSize); in timeByteBuffer_putByteBuffer()
71 ByteBuffer data = ByteBufferBulkBenchmark.newBuffer(aligned, dataBufferType, bufferSize); in timeByteBuffer_putByteBuffer()
73 src.position(aligned ? 0 : 1); in timeByteBuffer_putByteBuffer()
74 data.position(aligned ? 0 : 1 ); in timeByteBuffer_putByteBuffer()
/libcore/
DNativeCode.bp223 // memcpy calls that are not really aligned.