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>,
106 references to IShiftOperators
Microsoft.Data.Analysis (1)
Computations\Arithmetic.net8.cs (1)
88
where T : unmanaged,
IShiftOperators
<T, int, T>
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (7)
14
where T :
IShiftOperators
<T, int, T>
29
where T :
IShiftOperators
<T, int, T>
38
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
49
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
58
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
66
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
75
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
System\Numerics\Tensors\netcore\Tensor.op_RightShift.cs (7)
14
where T :
IShiftOperators
<T, int, T>
29
where T :
IShiftOperators
<T, int, T>
38
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
49
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
58
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
66
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
75
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
System\Numerics\Tensors\netcore\Tensor.op_UnsignedRightShift.cs (7)
14
where T :
IShiftOperators
<T, int, T>
29
where T :
IShiftOperators
<T, int, T>
38
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
49
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
58
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
66
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
75
where TScalar :
IShiftOperators
<TScalar, int, TScalar>
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)
1133
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1134
static 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)" />
1137
static 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)" />
1140
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)
2028
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
2029
static 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)" />
2032
static 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)" />
2035
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)
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)" />
1333
static 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)" />
1336
static 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)" />
1339
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)
1383
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1384
static int
IShiftOperators
<int, int, int>.operator <<(int value, int shiftAmount) => value << shiftAmount;
1386
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1387
static int
IShiftOperators
<int, int, int>.operator >>(int value, int shiftAmount) => value >> shiftAmount;
1389
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1390
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)
1386
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1387
static long
IShiftOperators
<long, int, long>.operator <<(long value, int shiftAmount) => value << shiftAmount;
1389
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1390
static long
IShiftOperators
<long, int, long>.operator >>(long value, int shiftAmount) => value >> shiftAmount;
1392
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1393
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)
1399
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1400
static nint
IShiftOperators
<nint, int, nint>.operator <<(nint value, int shiftAmount) => value << shiftAmount;
1402
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1403
static nint
IShiftOperators
<nint, int, nint>.operator >>(nint value, int shiftAmount) => value >> shiftAmount;
1405
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1406
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)
1311
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1312
static 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)" />
1315
static 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)" />
1318
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)
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)" />
1139
static 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)" />
1142
static 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)" />
1145
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)
1209
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1210
static uint
IShiftOperators
<uint, int, uint>.operator <<(uint value, int shiftAmount) => value << shiftAmount;
1212
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1213
static uint
IShiftOperators
<uint, int, uint>.operator >>(uint value, int shiftAmount) => value >> shiftAmount;
1215
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1216
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)
1210
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1211
static ulong
IShiftOperators
<ulong, int, ulong>.operator <<(ulong value, int shiftAmount) => value << shiftAmount;
1213
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1214
static ulong
IShiftOperators
<ulong, int, ulong>.operator >>(ulong value, int shiftAmount) => value >> shiftAmount;
1216
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1217
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)
1205
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_LeftShift(TSelf, TOther)" />
1206
static nuint
IShiftOperators
<nuint, int, nuint>.operator <<(nuint value, int shiftAmount) => value << shiftAmount;
1208
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_RightShift(TSelf, TOther)" />
1209
static nuint
IShiftOperators
<nuint, int, nuint>.operator >>(nuint value, int shiftAmount) => value >> shiftAmount;
1211
/// <inheritdoc cref="
IShiftOperators
{TSelf, TOther, TResult}.op_UnsignedRightShift(TSelf, TOther)" />
1212
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)
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)" />