2 interfaces inheriting from IShiftOperators
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (1)
10
IShiftOperators
<TSelf, int, TSelf>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
27
IShiftOperators
<TSelf, int, TSelf>,
81 references to IShiftOperators
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
88
where T : unmanaged,
IShiftOperators
<T, int, T>
System.Numerics.Tensors (5)
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftLeft.cs (5)
22
where T :
IShiftOperators
<T, int, T> =>
37
where T :
IShiftOperators
<T, int, T> =>
52
where T :
IShiftOperators
<T, int, T> =>
56
private readonly struct ShiftLeftOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IShiftOperators
<T, int, T>
69
private readonly struct ShiftRightArithmeticOperator<T>(int amount) : IStatefulUnaryOperator<T> where T :
IShiftOperators
<T, int, T>
System.Private.CoreLib (73)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (6)
1117
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1118
static byte
IShiftOperators
<byte, int, byte>.operator <<(byte value, int shiftAmount) => (byte)(value << (shiftAmount & 7));
1120
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1121
static byte
IShiftOperators
<byte, int, byte>.operator >>(byte value, int shiftAmount) => (byte)(value >> (shiftAmount & 7));
1123
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1124
static byte
IShiftOperators
<byte, int, byte>.operator >>>(byte value, int shiftAmount) => (byte)(value >>> (shiftAmount & 7));
src\libraries\System.Private.CoreLib\src\System\Char.cs (6)
1935
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1936
static char
IShiftOperators
<char, int, char>.operator <<(char value, int shiftAmount) => (char)(value << (shiftAmount & 15));
1938
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1939
static char
IShiftOperators
<char, int, char>.operator >>(char value, int shiftAmount) => (char)(value >> (shiftAmount & 15));
1941
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1942
static char
IShiftOperators
<char, int, char>.operator >>>(char value, int shiftAmount) => (char)(value >>> (shiftAmount & 15));
src\libraries\System.Private.CoreLib\src\System\Int128.cs (3)
1940
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1973
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
2008
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (6)
1314
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1315
static short
IShiftOperators
<short, int, short>.operator <<(short value, int shiftAmount) => (short)(value << (shiftAmount & 15));
1317
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1318
static short
IShiftOperators
<short, int, short>.operator >>(short value, int shiftAmount) => (short)(value >> (shiftAmount & 15));
1320
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1321
static short
IShiftOperators
<short, int, short>.operator >>>(short value, int shiftAmount) => (short)((ushort)value >>> (shiftAmount & 15));
src\libraries\System.Private.CoreLib\src\System\Int32.cs (6)
1356
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1357
static int
IShiftOperators
<int, int, int>.operator <<(int value, int shiftAmount) => value << shiftAmount;
1359
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1360
static int
IShiftOperators
<int, int, int>.operator >>(int value, int shiftAmount) => value >> shiftAmount;
1362
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1363
static int
IShiftOperators
<int, int, int>.operator >>>(int value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (6)
1359
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1360
static long
IShiftOperators
<long, int, long>.operator <<(long value, int shiftAmount) => value << shiftAmount;
1362
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1363
static long
IShiftOperators
<long, int, long>.operator >>(long value, int shiftAmount) => value >> shiftAmount;
1365
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1366
static long
IShiftOperators
<long, int, long>.operator >>>(long value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (6)
1341
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1342
static nint
IShiftOperators
<nint, int, nint>.operator <<(nint value, int shiftAmount) => value << shiftAmount;
1344
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1345
static nint
IShiftOperators
<nint, int, nint>.operator >>(nint value, int shiftAmount) => value >> shiftAmount;
1347
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1348
static nint
IShiftOperators
<nint, int, nint>.operator >>>(nint value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\Numerics\IShiftOperators.cs (1)
11
where TSelf :
IShiftOperators
<TSelf, TOther, TResult>?
src\libraries\System.Private.CoreLib\src\System\SByte.cs (6)
1277
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1278
static sbyte
IShiftOperators
<sbyte, int, sbyte>.operator <<(sbyte value, int shiftAmount) => (sbyte)(value << (shiftAmount & 7));
1280
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1281
static sbyte
IShiftOperators
<sbyte, int, sbyte>.operator >>(sbyte value, int shiftAmount) => (sbyte)(value >> (shiftAmount & 7));
1283
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1284
static sbyte
IShiftOperators
<sbyte, int, sbyte>.operator >>>(sbyte value, int shiftAmount) => (sbyte)((byte)value >>> (shiftAmount & 7));
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (3)
2008
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
2041
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
2044
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (6)
1136
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1137
static ushort
IShiftOperators
<ushort, int, ushort>.operator <<(ushort value, int shiftAmount) => (ushort)(value << (shiftAmount & 15));
1139
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1140
static ushort
IShiftOperators
<ushort, int, ushort>.operator >>(ushort value, int shiftAmount) => (ushort)(value >> (shiftAmount & 15));
1142
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1143
static ushort
IShiftOperators
<ushort, int, ushort>.operator >>>(ushort value, int shiftAmount) => (ushort)(value >>> (shiftAmount & 15));
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (6)
1181
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1182
static uint
IShiftOperators
<uint, int, uint>.operator <<(uint value, int shiftAmount) => value << shiftAmount;
1184
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1185
static uint
IShiftOperators
<uint, int, uint>.operator >>(uint value, int shiftAmount) => value >> shiftAmount;
1187
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1188
static uint
IShiftOperators
<uint, int, uint>.operator >>>(uint value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (6)
1174
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1175
static ulong
IShiftOperators
<ulong, int, ulong>.operator <<(ulong value, int shiftAmount) => value << shiftAmount;
1177
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1178
static ulong
IShiftOperators
<ulong, int, ulong>.operator >>(ulong value, int shiftAmount) => value >> shiftAmount;
1180
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1181
static ulong
IShiftOperators
<ulong, int, ulong>.operator >>>(ulong value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (6)
1170
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1171
static nuint
IShiftOperators
<nuint, int, nuint>.operator <<(nuint value, int shiftAmount) => value << shiftAmount;
1173
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1174
static nuint
IShiftOperators
<nuint, int, nuint>.operator >>(nuint value, int shiftAmount) => value >> shiftAmount;
1176
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1177
static nuint
IShiftOperators
<nuint, int, nuint>.operator >>>(nuint value, int shiftAmount) => value >>> shiftAmount;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
396
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IShiftOperators
<,,>))]
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
5256
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />