Integers.cs
396 Bytes
using System;
namespace Org.BouncyCastle.Utilities
{
public abstract class Integers
{
public static int RotateLeft(int i, int distance)
{
return (i << distance) ^ (int)((uint)i >> -distance);
}
public static int RotateRight(int i, int distance)
{
return (int)((uint)i >> distance) ^ (i << -distance);
}
}
}