43 references to CreateSaturating
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
835
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 (39)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
580
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (3)
1122
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1126
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1332
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (3)
661
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
674
return TInteger.
CreateSaturating
(value);
1064
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
1317
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1321
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1778
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1313
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
694
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
735
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
732
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
727
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1032
TFloat result = TFloat.
CreateSaturating
(mantissa_d);
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
26
return TInteger.
CreateSaturating
(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
2392
TResult value = TResult.
CreateSaturating
(low.GetElementUnsafe(i));
2398
TResult value = TResult.
CreateSaturating
(high.GetElementUnsafe(i - Vector<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
985
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
989
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
1312
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
2720
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
2726
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector128<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
2785
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
2791
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector256<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
2810
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
2816
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector512<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
2778
TResult value = TResult.
CreateSaturating
(lower.GetElementUnsafe(i));
2784
TResult value = TResult.
CreateSaturating
(upper.GetElementUnsafe(i - Vector64<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
657
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (3)
656
where TInteger : IBinaryInteger<TInteger> => TInteger.
CreateSaturating
(value);
669
return TInteger.
CreateSaturating
(value);
1061
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1467
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
599
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
638
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
637
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
640
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
4041
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />
System\Numerics\Complex.cs (1)
959
/// <inheritdoc cref="INumberBase{TSelf}.
CreateSaturating
{TOther}(TOther)" />