Lines Matching defs:swap
234 * Byte swap a value
236 * @param value the value to swap, only the bytes*8 least significant bits are used
283 * Copy and byte swap data from the source to the destination
306 * @param swap true if elements should be byte swapped
312 long bufSize, long copyBytes, long elemSize, boolean swap) {
313 if (swap) {
355 if (swap) {
356 // Copy & swap data into the middle of the destination buffer
364 // Copy & swap data into the middle of the destination buffer
387 if (swap) {
411 public void testBufferPair(GenericPointer src, GenericPointer dst, long size, long elemSize, boolean swap) {
422 testCopyGeneric(src, srcOffset, dst, dstOffset, size, copyBytes, elemSize, swap);
432 " swap=" + swap,
449 public void testPermuteBuffers(GenericPointer[] buffers, long size, long elemSize, boolean swap) {
450 System.out.println("testPermuteBuffers(buffers, " + size + ", " + elemSize + ", " + swap + ")");
453 testBufferPair(buffers[srcIndex], buffers[dstIndex], size, elemSize, swap);
466 private void testElemSize(long size, long elemSize, boolean swap) {
484 testPermuteBuffers(buffers, size, elemSize, swap);
498 void testSmallCopy(boolean swap) {
500 int minElemSize = swap ? 2 : 1;
501 int maxElemSize = swap ? 8 : 1;
505 testElemSize(smallBufSize, elemSize, swap);
513 void testLargeCopy(boolean swap) {
528 if (swap) {
534 throw new RuntimeException("copy of large buffer failed (swap=" + swap + ")");