Java Array Multiply multiplyX(long[] x, long[] z)

Here you can find the source of multiplyX(long[] x, long[] z)

Description

multiply X

License

Open Source License

Declaration

public static void multiplyX(long[] x, long[] z) 

Method Source Code

//package com.java2s;

public class Main {
    public static void multiplyX(long[] x, long[] z) {
        long x0 = x[0], x1 = x[1];
        long m = x1 >> 63;
        z[0] = (x0 << 1) ^ (m & 0x87L);
        z[1] = (x1 << 1) | (x0 >>> 63);
    }//from w w w. j av a  2 s.  c  o m
}

Related

  1. multiplySquares(float[] mat1, float[] mat2, int sidelength)
  2. multiplyValues(byte[] array, int multiplier)
  3. multiplyVecorWithScalar(double[] v, double s)
  4. multiplyVector(float[] mat, float[] vec, float[] dest)
  5. multiplyVectorByMatrix(double[] v, double[] m, double[] result)
  6. multiplyX(long[] x, long[] z)