58 references to CreateSaturating
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
855
destination = TTo.
CreateSaturating
(x);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
37
public static TTo Invoke(TFrom x) => TTo.
CreateSaturating
(x);
System.Private.CoreLib (51)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
575
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
1117
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1121
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1303
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1750
return TFloat.
CreateSaturating
((double)low64 / Number.Pow10DoubleTable[scale]);
1766
return TFloat.
CreateSaturating
(DecimalToFloatingPointExact(low64, high, scale, TFloat.DenormalMantissaBits + 1));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (3)
659
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
672
return TInteger.
CreateSaturating
(value);
1082
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
1350
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1354
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1828
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1303
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
675
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
717
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
714
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
737
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1024
bits = TFloat.FloatToBits(TFloat.
CreateSaturating
(mantissa_d));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1417
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (3)
821
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
825
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1322
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (3)
832
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
836
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1333
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (3)
825
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
829
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1326
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
26
return TInteger.
CreateSaturating
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
2734
TResult value = TResult.
CreateSaturating
(low.GetElementUnsafe(i));
2740
TResult value = TResult.
CreateSaturating
(high.GetElementUnsafe(i - Vector<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
984
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
988
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1239
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
2993
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
2999
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector128<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
3057
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
3063
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector256<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
3091
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
3097
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector512<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
3156
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
3162
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector64<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
654
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (3)
652
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
665
return TInteger.
CreateSaturating
(value);
1077
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1500
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
580
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
645
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
652
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
651
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
System.Runtime.Numerics (5)
System\Numerics\BigInteger.cs (1)
4136
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
System\Numerics\Complex.cs (1)
544
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
System\Numerics\Complex.Generic.cs (3)
1206
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
1690
result = new Complex<T>(T.
CreateSaturating
(actualValue.Real), T.
CreateSaturating
(actualValue.Imaginary));