43 references to CreateSaturating
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
835destination = TTo.CreateSaturating(x);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
37public 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)
1122where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1126where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1332/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (3)
661where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 674return TInteger.CreateSaturating(value); 1064/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
1317where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1321where 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)
1032TFloat result = TFloat.CreateSaturating(mantissa_d);
src\libraries\System.Private.CoreLib\src\System\Numerics\IFloatingPoint.cs (1)
26return TInteger.CreateSaturating(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
2392TResult value = TResult.CreateSaturating(low.GetElementUnsafe(i)); 2398TResult value = TResult.CreateSaturating(high.GetElementUnsafe(i - Vector<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
985where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 989where 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)
2720TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 2726TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector128<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
2785TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 2791TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector256<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
2810TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 2816TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector512<TSource>.Count));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
2778TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 2784TResult 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)
656where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 669return 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)" />