All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.util.Integers Maven / Gradle / Ivy

The newest version!
package org.bouncycastle.util;

public class Integers
{
    public static int rotateLeft(int i, int distance)
    {
        return (i << distance) ^ (i >>> -distance);
    }

    public static int rotateRight(int i, int distance)
    {
        return (i >>> distance) ^ (i << -distance);
    }

    public static Integer valueOf(int value)
    {
        return new Integer(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy