58 references to CreateSaturating
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
855destination = TTo.CreateSaturating(x);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
37public 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)
1117where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1121where 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)
1750return TFloat.CreateSaturating((double)low64 / Number.Pow10DoubleTable[scale]); 1766return TFloat.CreateSaturating(DecimalToFloatingPointExact(low64, high, scale, TFloat.DenormalMantissaBits + 1));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (3)
659where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 672return TInteger.CreateSaturating(value); 1082/// <inheritdoc cref="INumberBase{TSelf}.CreateSaturating{TOther}(TOther)" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
1350where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 1354where 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)
1024bits = 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)
821where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 825where 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)
832where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 836where 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)
825where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 829where 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)
26return TInteger.CreateSaturating(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (2)
2734TResult value = TResult.CreateSaturating(low.GetElementUnsafe(i)); 2740TResult value = TResult.CreateSaturating(high.GetElementUnsafe(i - Vector<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (3)
984where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 988where 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)
2993TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 2999TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector128<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
3057TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 3063TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector256<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (2)
3091TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 3097TResult value = TResult.CreateSaturating(upper.GetElementUnsafe(i - Vector512<TSource>.Count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (2)
3156TResult value = TResult.CreateSaturating(lower.GetElementUnsafe(i)); 3162TResult 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)
652where TInteger : IBinaryInteger<TInteger> => TInteger.CreateSaturating(value); 665return 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)" /> 1690result = new Complex<T>(T.CreateSaturating(actualValue.Real), T.CreateSaturating(actualValue.Imaginary));