Java BigInteger Calculate rightshift(byte b1, BigInteger b2)

Here you can find the source of rightshift(byte b1, BigInteger b2)

Description

rightshift

License

Open Source License

Declaration

public static byte rightshift(byte b1, BigInteger b2) 

Method Source Code


//package com.java2s;

import java.math.*;

public class Main {
    public static byte rightshift(byte b1, BigInteger b2) {
        return (byte) ((b1 & 0xFF) >>> b2.intValue());
    }/*  w w  w.j  ava 2s  . c  o  m*/
}

Related

  1. product(final BigInteger min, final BigInteger max)
  2. randomFromZn(BigInteger n, Random rand)
  3. removeDuplicates(final BigInteger... values)
  4. renderBigInteger(final BigInteger bint)
  5. retrieveBigInteger(final byte[] buf, final int offset)
  6. saveKey(File destDir, String fileName, BigInteger modulus, BigInteger publicExponent)
  7. saveToFile(String fileName, BigInteger mod, BigInteger exp)
  8. serializeModexpNoBase(BigInteger[] modexp, boolean withResult)
  9. serializeModexpResponse(BigInteger response)