blob: 996ce285b98df0a2b1985a1ec6faccc92cdd69ca [file] [log] [blame]
/* GENERATED SOURCE. DO NOT MODIFY. */
package com.android.internal.org.bouncycastle.math.raw;
/**
* @hide This class is not part of the Android public SDK API
*/
public abstract class Bits
{
public static int bitPermuteStep(int x, int m, int s)
{
int t = (x ^ (x >>> s)) & m;
return (t ^ (t << s)) ^ x;
}
public static long bitPermuteStep(long x, long m, int s)
{
long t = (x ^ (x >>> s)) & m;
return (t ^ (t << s)) ^ x;
}
public static int bitPermuteStepSimple(int x, int m, int s)
{
return ((x & m) << s) | ((x >>> s) & m);
}
public static long bitPermuteStepSimple(long x, long m, int s)
{
return ((x & m) << s) | ((x >>> s) & m);
}
}