2 interfaces inheriting from IShiftOperators
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
10
IShiftOperators
<TSelf, int, TSelf>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
27
IShiftOperators
<TSelf, int, TSelf>,
85 references to IShiftOperators
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
88
where T : unmanaged,
IShiftOperators
<T, int, T>
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\TensorOperation.cs (3)
1888
where T :
IShiftOperators
<T, int, T>
1903
where T :
IShiftOperators
<T, int, T>
1918
where T :
IShiftOperators
<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftLeft.cs (2)
22
where T :
IShiftOperators
<T, int, T> =>
26
private readonly struct ShiftLeftOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IShiftOperators
<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightArithmetic.cs (2)
22
where T :
IShiftOperators
<T, int, T> =>
26
private readonly struct ShiftRightArithmeticOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IShiftOperators
<T, int, T>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightLogical.cs (2)
22
where T :
IShiftOperators
<T, int, T> =>
26
private 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)
1118
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1119
static byte
IShiftOperators
<byte, int, byte>.operator <<(byte value, int shiftAmount) => (byte)(value << (shiftAmount & 7));
1121
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1122
static byte
IShiftOperators
<byte, int, byte>.operator >>(byte value, int shiftAmount) => (byte)(value >> (shiftAmount & 7));
1124
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1125
static 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)
1974
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1975
static char
IShiftOperators
<char, int, char>.operator <<(char value, int shiftAmount) => (char)(value << (shiftAmount & 15));
1977
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1978
static char
IShiftOperators
<char, int, char>.operator >>(char value, int shiftAmount) => (char)(value >> (shiftAmount & 15));
1980
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1981
static 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)
1929
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1962
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1997
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (6)
1308
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1309
static short
IShiftOperators
<short, int, short>.operator <<(short value, int shiftAmount) => (short)(value << (shiftAmount & 15));
1311
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1312
static short
IShiftOperators
<short, int, short>.operator >>(short value, int shiftAmount) => (short)(value >> (shiftAmount & 15));
1314
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1315
static 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)
1375
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1376
static int
IShiftOperators
<int, int, int>.operator <<(int value, int shiftAmount) => value << shiftAmount;
1378
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1379
static int
IShiftOperators
<int, int, int>.operator >>(int value, int shiftAmount) => value >> shiftAmount;
1381
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1382
static int
IShiftOperators
<int, int, int>.operator >>>(int value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (6)
1378
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1379
static long
IShiftOperators
<long, int, long>.operator <<(long value, int shiftAmount) => value << shiftAmount;
1381
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1382
static long
IShiftOperators
<long, int, long>.operator >>(long value, int shiftAmount) => value >> shiftAmount;
1384
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1385
static long
IShiftOperators
<long, int, long>.operator >>>(long value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (6)
1378
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1379
static nint
IShiftOperators
<nint, int, nint>.operator <<(nint value, int shiftAmount) => value << shiftAmount;
1381
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1382
static nint
IShiftOperators
<nint, int, nint>.operator >>(nint value, int shiftAmount) => value >> shiftAmount;
1384
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1385
static 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)
11
where TSelf :
IShiftOperators
<TSelf, TOther, TResult>?
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (6)
1287
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1288
static sbyte
IShiftOperators
<sbyte, int, sbyte>.operator <<(sbyte value, int shiftAmount) => (sbyte)(value << (shiftAmount & 7));
1290
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1291
static sbyte
IShiftOperators
<sbyte, int, sbyte>.operator >>(sbyte value, int shiftAmount) => (sbyte)(value >> (shiftAmount & 7));
1293
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1294
static 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)
2045
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
2078
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
2081
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (6)
1123
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1124
static ushort
IShiftOperators
<ushort, int, ushort>.operator <<(ushort value, int shiftAmount) => (ushort)(value << (shiftAmount & 15));
1126
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1127
static ushort
IShiftOperators
<ushort, int, ushort>.operator >>(ushort value, int shiftAmount) => (ushort)(value >> (shiftAmount & 15));
1129
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1130
static 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)
1194
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1195
static uint
IShiftOperators
<uint, int, uint>.operator <<(uint value, int shiftAmount) => value << shiftAmount;
1197
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1198
static uint
IShiftOperators
<uint, int, uint>.operator >>(uint value, int shiftAmount) => value >> shiftAmount;
1200
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1201
static uint
IShiftOperators
<uint, int, uint>.operator >>>(uint value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (6)
1195
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1196
static ulong
IShiftOperators
<ulong, int, ulong>.operator <<(ulong value, int shiftAmount) => value << shiftAmount;
1198
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1199
static ulong
IShiftOperators
<ulong, int, ulong>.operator >>(ulong value, int shiftAmount) => value >> shiftAmount;
1201
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1202
static ulong
IShiftOperators
<ulong, int, ulong>.operator >>>(ulong value, int shiftAmount) => value >>> shiftAmount;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (6)
1177
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1178
static nuint
IShiftOperators
<nuint, int, nuint>.operator <<(nuint value, int shiftAmount) => value << shiftAmount;
1180
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1181
static nuint
IShiftOperators
<nuint, int, nuint>.operator >>(nuint value, int shiftAmount) => value >> shiftAmount;
1183
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1184
static 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)
401
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IShiftOperators
<,,>))]
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
5207
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />