NumberExtensions.cs 328 B

12345678910111213
  1. using System.Runtime.CompilerServices;
  2. namespace Jint.Native.Number.Dtoa
  3. {
  4. internal static class NumberExtensions
  5. {
  6. [MethodImpl(MethodImplOptions.AggressiveInlining)]
  7. public static long UnsignedShift(this long l, int shift)
  8. {
  9. return (long) ((ulong) l >> shift);
  10. }
  11. }
  12. }