Package net.fec.openrq.util.io

Examples of net.fec.openrq.util.io.BufferOperation


    public static void valueVectorProduct(byte value, ByteBuffer vector, ByteBuffer result, int length) {

        if (value == 1) { // if multiplied by one, simply copy the source vector data and return
            if (vector != result) { // avoid unnecessary copy if in-place product
                BufferOperation op = BufferOperation.RESTORE_POSITION;
                ByteBuffers.copy(vector, op, result, op, length);
            }
        }
        else if (value == 0) { // if multiplied by zero, simply fill the result with zeros and return
            ByteBuffers.putZeros(result, length, BufferOperation.RESTORE_POSITION);
View Full Code Here


    public static void valueVectorDivision(byte value, ByteBuffer vector, ByteBuffer result, int length) {

        if (value == 1) { // if divided by one, simply copy the source vector data and return
            if (vector != result) { // avoid unnecessary copy if in-place division
                BufferOperation op = BufferOperation.RESTORE_POSITION;
                ByteBuffers.copy(vector, op, result, op, length);
            }
        }
        else {
            final int sol = SizeOf.LONG;
View Full Code Here

TOP

Related Classes of net.fec.openrq.util.io.BufferOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.