123456789101112131415161718192021 |
- #nullable disable
- using System.Runtime.CompilerServices;
- namespace Jint.Native.Number.Dtoa
- {
- internal static class NumberExtensions
- {
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static long UnsignedShift(this long l, int shift)
- {
- return (long) ((ulong) l >> shift);
- }
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static ulong UnsignedShift(this ulong l, int shift)
- {
- return l >> shift;
- }
- }
- }
|