2 interfaces inheriting from IShiftOperators
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
10IShiftOperators<TSelf, int, TSelf>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
27IShiftOperators<TSelf, int, TSelf>,
106 references to IShiftOperators
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
88where T : unmanaged, IShiftOperators<T, int, T>
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (7)
14where T : IShiftOperators<T, int, T> 29where T : IShiftOperators<T, int, T> 38where TScalar : IShiftOperators<TScalar, int, TScalar> 49where TScalar : IShiftOperators<TScalar, int, TScalar> 58where TScalar : IShiftOperators<TScalar, int, TScalar> 66where TScalar : IShiftOperators<TScalar, int, TScalar> 75where TScalar : IShiftOperators<TScalar, int, TScalar>
System\Numerics\Tensors\netcore\Tensor.op_RightShift.cs (7)
14where T : IShiftOperators<T, int, T> 29where T : IShiftOperators<T, int, T> 38where TScalar : IShiftOperators<TScalar, int, TScalar> 49where TScalar : IShiftOperators<TScalar, int, TScalar> 58where TScalar : IShiftOperators<TScalar, int, TScalar> 66where TScalar : IShiftOperators<TScalar, int, TScalar> 75where TScalar : IShiftOperators<TScalar, int, TScalar>
System\Numerics\Tensors\netcore\Tensor.op_UnsignedRightShift.cs (7)
14where T : IShiftOperators<T, int, T> 29where T : IShiftOperators<T, int, T> 38where TScalar : IShiftOperators<TScalar, int, TScalar> 49where TScalar : IShiftOperators<TScalar, int, TScalar> 58where TScalar : IShiftOperators<TScalar, int, TScalar> 66where TScalar : IShiftOperators<TScalar, int, TScalar> 75where TScalar : IShiftOperators<TScalar, int, TScalar>
System\Numerics\Tensors\netcore\TensorOperation.cs (3)
1888where T : IShiftOperators<T, int, T> 1903where T : IShiftOperators<T, int, T> 1918where T : IShiftOperators<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftLeft.cs (2)
22where T : IShiftOperators<T, int, T> => 26private readonly struct ShiftLeftOperator<T>(int amount) : IStatefulUnaryOperator<T> where T : IShiftOperators<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightArithmetic.cs (2)
22where T : IShiftOperators<T, int, T> => 26private readonly struct ShiftRightArithmeticOperator<T>(int amount) : IStatefulUnaryOperator<T> where T : IShiftOperators<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightLogical.cs (2)
22where T : IShiftOperators<T, int, T> => 26private readonly struct ShiftRightLogicalOperator<T>(int amount) : IStatefulUnaryOperator<T> where T : IShiftOperators<T, int, T>
System.Private.CoreLib (73)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (6)
1133/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1134static byte IShiftOperators<byte, int, byte>.operator <<(byte value, int shiftAmount) => (byte)(value << (shiftAmount & 7)); 1136/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1137static byte IShiftOperators<byte, int, byte>.operator >>(byte value, int shiftAmount) => (byte)(value >> (shiftAmount & 7)); 1139/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1140static byte IShiftOperators<byte, int, byte>.operator >>>(byte value, int shiftAmount) => (byte)(value >>> (shiftAmount & 7));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (6)
2028/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 2029static char IShiftOperators<char, int, char>.operator <<(char value, int shiftAmount) => (char)(value << (shiftAmount & 15)); 2031/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 2032static char IShiftOperators<char, int, char>.operator >>(char value, int shiftAmount) => (char)(value >> (shiftAmount & 15)); 2034/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 2035static char IShiftOperators<char, int, char>.operator >>>(char value, int shiftAmount) => (char)(value >>> (shiftAmount & 15));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (3)
1941/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1974/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 2009/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (6)
1332/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1333static short IShiftOperators<short, int, short>.operator <<(short value, int shiftAmount) => (short)(value << (shiftAmount & 15)); 1335/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1336static short IShiftOperators<short, int, short>.operator >>(short value, int shiftAmount) => (short)(value >> (shiftAmount & 15)); 1338/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1339static short IShiftOperators<short, int, short>.operator >>>(short value, int shiftAmount) => (short)((ushort)value >>> (shiftAmount & 15));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (6)
1383/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1384static int IShiftOperators<int, int, int>.operator <<(int value, int shiftAmount) => value << shiftAmount; 1386/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1387static int IShiftOperators<int, int, int>.operator >>(int value, int shiftAmount) => value >> shiftAmount; 1389/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1390static int IShiftOperators<int, int, int>.operator >>>(int value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (6)
1386/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1387static long IShiftOperators<long, int, long>.operator <<(long value, int shiftAmount) => value << shiftAmount; 1389/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1390static long IShiftOperators<long, int, long>.operator >>(long value, int shiftAmount) => value >> shiftAmount; 1392/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1393static long IShiftOperators<long, int, long>.operator >>>(long value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (6)
1399/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1400static nint IShiftOperators<nint, int, nint>.operator <<(nint value, int shiftAmount) => value << shiftAmount; 1402/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1403static nint IShiftOperators<nint, int, nint>.operator >>(nint value, int shiftAmount) => value >> shiftAmount; 1405/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1406static nint IShiftOperators<nint, int, nint>.operator >>>(nint value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IShiftOperators.cs (1)
11where TSelf : IShiftOperators<TSelf, TOther, TResult>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (6)
1311/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1312static sbyte IShiftOperators<sbyte, int, sbyte>.operator <<(sbyte value, int shiftAmount) => (sbyte)(value << (shiftAmount & 7)); 1314/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1315static sbyte IShiftOperators<sbyte, int, sbyte>.operator >>(sbyte value, int shiftAmount) => (sbyte)(value >> (shiftAmount & 7)); 1317/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1318static sbyte IShiftOperators<sbyte, int, sbyte>.operator >>>(sbyte value, int shiftAmount) => (sbyte)((byte)value >>> (shiftAmount & 7));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (3)
2062/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 2095/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 2098/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (6)
1138/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1139static ushort IShiftOperators<ushort, int, ushort>.operator <<(ushort value, int shiftAmount) => (ushort)(value << (shiftAmount & 15)); 1141/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1142static ushort IShiftOperators<ushort, int, ushort>.operator >>(ushort value, int shiftAmount) => (ushort)(value >> (shiftAmount & 15)); 1144/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1145static ushort IShiftOperators<ushort, int, ushort>.operator >>>(ushort value, int shiftAmount) => (ushort)(value >>> (shiftAmount & 15));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (6)
1209/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1210static uint IShiftOperators<uint, int, uint>.operator <<(uint value, int shiftAmount) => value << shiftAmount; 1212/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1213static uint IShiftOperators<uint, int, uint>.operator >>(uint value, int shiftAmount) => value >> shiftAmount; 1215/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1216static uint IShiftOperators<uint, int, uint>.operator >>>(uint value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (6)
1210/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1211static ulong IShiftOperators<ulong, int, ulong>.operator <<(ulong value, int shiftAmount) => value << shiftAmount; 1213/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1214static ulong IShiftOperators<ulong, int, ulong>.operator >>(ulong value, int shiftAmount) => value >> shiftAmount; 1216/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1217static ulong IShiftOperators<ulong, int, ulong>.operator >>>(ulong value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (6)
1205/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" /> 1206static nuint IShiftOperators<nuint, int, nuint>.operator <<(nuint value, int shiftAmount) => value << shiftAmount; 1208/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" /> 1209static nuint IShiftOperators<nuint, int, nuint>.operator >>(nuint value, int shiftAmount) => value >> shiftAmount; 1211/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" /> 1212static nuint IShiftOperators<nuint, int, nuint>.operator >>>(nuint value, int shiftAmount) => value >>> shiftAmount;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
408[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.IShiftOperators<,,>))]
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
5399/// <inheritdoc cref="IShiftOperators{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />