123456789101112131415161718192021 |
- #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
- 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);
- }
- }
- }
- #endif
|