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>,
84 references to IShiftOperators
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\TensorOperation.cs (3)
1868
where T :
IShiftOperators
<T, int, T>
1883
where T :
IShiftOperators
<T, int, T>
1898
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\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)
1968
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1969
static char
IShiftOperators
<char, int, char>.operator <<(char value, int shiftAmount) => (char)(value << (shiftAmount & 15));
1971
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1972
static char
IShiftOperators
<char, int, char>.operator >>(char value, int shiftAmount) => (char)(value >> (shiftAmount & 15));
1974
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1975
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)
1935
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1968
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
2003
/// <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)
1380
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1381
static int
IShiftOperators
<int, int, int>.operator <<(int value, int shiftAmount) => value << shiftAmount;
1383
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1384
static int
IShiftOperators
<int, int, int>.operator >>(int value, int shiftAmount) => value >> shiftAmount;
1386
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1387
static int
IShiftOperators
<int, int, int>.operator >>>(int value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (6)
1383
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1384
static long
IShiftOperators
<long, int, long>.operator <<(long value, int shiftAmount) => value << shiftAmount;
1386
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1387
static long
IShiftOperators
<long, int, long>.operator >>(long value, int shiftAmount) => value >> shiftAmount;
1389
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1390
static long
IShiftOperators
<long, int, long>.operator >>>(long value, int shiftAmount) => value >>> shiftAmount;
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (6)
1383
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1384
static nint
IShiftOperators
<nint, int, nint>.operator <<(nint value, int shiftAmount) => value << shiftAmount;
1386
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1387
static nint
IShiftOperators
<nint, int, nint>.operator >>(nint value, int shiftAmount) => value >> shiftAmount;
1389
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1390
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)
2013
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
2046
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
2049
/// <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)
1183
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1184
static nuint
IShiftOperators
<nuint, int, nuint>.operator <<(nuint value, int shiftAmount) => value << shiftAmount;
1186
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1187
static nuint
IShiftOperators
<nuint, int, nuint>.operator >>(nuint value, int shiftAmount) => value >> shiftAmount;
1189
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1190
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)
397
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.
IShiftOperators
<,,>))]
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
5283
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />