src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (10)
519/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
522/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
523static byte INumber<byte>.CopySign(byte value, byte sign) => value;
525/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
528/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
529static byte INumber<byte>.MaxNumber(byte x, byte y) => Max(x, y);
531/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
534/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
535static byte INumber<byte>.MinNumber(byte x, byte y) => Min(x, y);
537/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (9)
1235/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
1238/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
1244/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
1250/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1251static decimal INumber<decimal>.MaxNumber(decimal x, decimal y) => Max(x, y);
1253/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1259/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1260static decimal INumber<decimal>.MinNumber(decimal x, decimal y) => Min(x, y);
1262/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (10)
958/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
968/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" />
978/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
981/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
985/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" />
989/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1012/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1016/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" />
1020/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1043/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (23)
164where TStorage : struct, INumber<TStorage> =>
174where TStorage : struct, INumber<TStorage>
493where TStorage : struct, INumber<TStorage>
974where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
975where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1044where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1453where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>
1454where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage> =>
1465where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>
1466where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1482where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1483where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage> =>
1495where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1496where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1858where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1859where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1893where TUnderlying : struct, INumber<TUnderlying>, IBitwiseOperators<TUnderlying, TUnderlying, TUnderlying>, IMinMaxValue<TUnderlying>
1894where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>, IMinMaxValue<TStorage>
1930where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
1963where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
2025where TStorage : struct, INumber<TStorage>
2063where TStorage : struct, INumber<TStorage>, IBitwiseOperators<TStorage, TStorage, TStorage>
2268internal static bool AreSequentialFromZero<TStorage>(TStorage[] values) where TStorage : struct, INumber<TStorage>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (10)
1691/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
1694/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" />
1704/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
1717/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
1720/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" />
1723/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1745/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1748/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" />
1751/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1773/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (9)
1189/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
1209/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
1227/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
1230/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1231static Int128 INumber<Int128>.MaxNumber(Int128 x, Int128 y) => Max(x, y);
1233/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1236/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1237static Int128 INumber<Int128>.MinNumber(Int128 x, Int128 y) => Min(x, y);
1239/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (9)
606/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
609/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
625/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
628/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
629static short INumber<short>.MaxNumber(short x, short y) => Max(x, y);
631/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
634/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
635static short INumber<short>.MinNumber(short x, short y) => Min(x, y);
637/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (9)
648/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
651/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
667/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
670/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
671static int INumber<int>.MaxNumber(int x, int y) => Max(x, y);
673/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
676/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
677static int INumber<int>.MinNumber(int x, int y) => Min(x, y);
679/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (9)
645/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
648/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
664/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
667/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
668static long INumber<long>.MaxNumber(long x, long y) => Max(x, y);
670/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
673/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
674static long INumber<long>.MinNumber(long x, long y) => Min(x, y);
676/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (9)
668/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
671/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
687/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
690/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
691static nint INumber<nint>.MaxNumber(nint x, nint y) => Max(x, y);
693/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
696/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
697static nint INumber<nint>.MinNumber(nint x, nint y) => Min(x, y);
699/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (10)
1174/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
1177/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" />
1180/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
1183/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
1186/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" />
1189/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1192/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1195/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" />
1198/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1201/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (9)
585/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
588/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
604/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
607/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
608static sbyte INumber<sbyte>.MaxNumber(sbyte x, sbyte y) => Max(x, y);
610/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
613/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
614static sbyte INumber<sbyte>.MinNumber(sbyte x, sbyte y) => Min(x, y);
616/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (10)
953/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
963/// <inheritdoc cref="INumber{TSelf}.ClampNative(TSelf, TSelf, TSelf)" />
973/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
976/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
980/// <inheritdoc cref="INumber{TSelf}.MaxNative(TSelf, TSelf)" />
984/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1007/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1011/// <inheritdoc cref="INumber{TSelf}.MinNative(TSelf, TSelf)" />
1015/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1038/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (35)
1462internal static bool ContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
1472internal static bool NonPackedContainsValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
1635internal static int IndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
1639internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
1644where TValue : struct, INumber<TValue>
1658where TValue : struct, INumber<TValue>
1850internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T>
1854internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T>
1859where TValue : struct, INumber<TValue>
1892where TValue : struct, INumber<TValue>
2110internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T>
2114internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T>
2119where TValue : struct, INumber<TValue>
2133where TValue : struct, INumber<TValue>
2351internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T>
2355internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T>
2359where TValue : struct, INumber<TValue>
2524internal static int IndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T>
2528internal static int IndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T>
2532where TValue : struct, INumber<TValue>
2700internal static int LastIndexOfValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
2704internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value, int length) where T : struct, INumber<T>
2708where TValue : struct, INumber<TValue>
2844internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T>
2848internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, int length) where T : struct, INumber<T>
2852where TValue : struct, INumber<TValue>
3061internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T>
3065internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, int length) where T : struct, INumber<T>
3069where TValue : struct, INumber<TValue>
3278internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T>
3282internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, int length) where T : struct, INumber<T>
3286where TValue : struct, INumber<TValue>
3550internal static int LastIndexOfAnyValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T>
3554internal static int LastIndexOfAnyExceptValueType<T>(ref T searchSpace, T value0, T value1, T value2, T value3, T value4, int length) where T : struct, INumber<T>
3558where TValue : struct, INumber<TValue>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (10)
1427/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
1447/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
1448static UInt128 INumber<UInt128>.CopySign(UInt128 value, UInt128 sign) => value;
1450/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
1453/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
1454static UInt128 INumber<UInt128>.MaxNumber(UInt128 x, UInt128 y) => Max(x, y);
1456/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
1459/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
1460static UInt128 INumber<UInt128>.MinNumber(UInt128 x, UInt128 y) => Min(x, y);
1462/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (10)
524/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
527/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
528static ushort INumber<ushort>.CopySign(ushort value, ushort sign) => value;
530/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
533/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
534static ushort INumber<ushort>.MaxNumber(ushort x, ushort y) => Max(x, y);
536/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
539/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
540static ushort INumber<ushort>.MinNumber(ushort x, ushort y) => Min(x, y);
542/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (10)
589/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
592/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
593static uint INumber<uint>.CopySign(uint value, uint sign) => value;
595/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
598/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
599static uint INumber<uint>.MaxNumber(uint x, uint y) => Max(x, y);
601/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
604/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
605static uint INumber<uint>.MinNumber(uint x, uint y) => Min(x, y);
607/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (10)
596/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
599/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
600static ulong INumber<ulong>.CopySign(ulong value, ulong sign) => value;
602/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
605/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
606static ulong INumber<ulong>.MaxNumber(ulong x, ulong y) => Max(x, y);
608/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
611/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
612static ulong INumber<ulong>.MinNumber(ulong x, ulong y) => Min(x, y);
614/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (10)
595/// <inheritdoc cref="INumber{TSelf}.Clamp(TSelf, TSelf, TSelf)" />
598/// <inheritdoc cref="INumber{TSelf}.CopySign(TSelf, TSelf)" />
599static nuint INumber<nuint>.CopySign(nuint value, nuint sign) => value;
601/// <inheritdoc cref="INumber{TSelf}.Max(TSelf, TSelf)" />
604/// <inheritdoc cref="INumber{TSelf}.MaxNumber(TSelf, TSelf)" />
605static nuint INumber<nuint>.MaxNumber(nuint x, nuint y) => Max(x, y);
607/// <inheritdoc cref="INumber{TSelf}.Min(TSelf, TSelf)" />
610/// <inheritdoc cref="INumber{TSelf}.MinNumber(TSelf, TSelf)" />
611static nuint INumber<nuint>.MinNumber(nuint x, nuint y) => Min(x, y);
613/// <inheritdoc cref="INumber{TSelf}.Sign(TSelf)" />