Here you can find the source of shiftRight(int[] result, int[] vec, int shift)
public static int[] shiftRight(int[] result, int[] vec, int shift)
//package com.java2s; //License from project: Open Source License public class Main { public static int[] shiftRight(int[] result, int[] vec, int shift) { for (int i = 0; i < result.length; i++) { result[i] = vec[i] >> shift; }// www. j ava 2 s . com return result; } }