43 references to Max
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (1)
878long delta = Math.Max(oldTimeout.Ticks, newTimeout.Ticks) - Math.Min(oldTimeout.Ticks, newTimeout.Ticks);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpRetransmissionSettings.cs (1)
268long max = Math.Max(Math.Abs(ts1.Ticks), Math.Abs(ts2.Ticks));
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Infrastructure\TimeoutControl.cs (3)
295var singleWriteTimeoutTimestamp = currentTimeUpperBound + Math.Max( 308_writeTimingTimeoutTimestamp = Math.Max(singleWriteTimeoutTimestamp, accumulatedWriteTimeoutTimestamp); 342return Math.Max(_writeTimingTimeoutTimestamp, gracePeriod);
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\SignalR\common\Shared\MessageBuffer.cs (1)
374var numElements = (int)Math.Min(BufferLength, Math.Max(1, sequenceId - (linkedBuffer._startingSequenceId - 1)));
Microsoft.AspNetCore.SignalR.Core (1)
src\SignalR\common\Shared\MessageBuffer.cs (1)
374var numElements = (int)Math.Min(BufferLength, Math.Max(1, sequenceId - (linkedBuffer._startingSequenceId - 1)));
Microsoft.Build (2)
Logging\BinaryLogger\Postprocessing\SubStream.cs (2)
49count = Math.Min((int)Math.Max(Length - _position, 0), count); 72count = Math.Min((int)Math.Max(Length - _position, 0), count);
Microsoft.Data.Analysis (6)
DataFrame.Join.cs (1)
108long newRowCount = Math.Max(Rows.Count, other.Rows.Count);
DataFrameBuffer.cs (1)
84var newCapacity = Math.Max(newLength * Size, doubledSize);
PrimitiveDataFrameColumnComputations.cs (4)
3208ret = (long)(Math.Max(readOnlySpan[i], ret)); 3252ret = (long)Math.Max(span[(int)row], ret); 3464value = (long)(Math.Max(readOnlySpan[i], value)); 3491value = (long)(Math.Max(readOnlySpan[(int)row], value));
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
66long expectedLength = Math.Max(utf8Bom.Length, stream.Length - stream.Position) + 1;
Microsoft.ML.Data (6)
Transforms\NormalizeColumnDbl.cs (2)
447get { return _m2.Select((m2, i) => Math.Sqrt(m2 / Math.Max(0, _cnz[i] - 1))).ToArray(); } 457get { return _m2.Select((m2, i) => m2 / Math.Max(0, _cnz[i] - 1)).ToArray(); }
Transforms\NormalizeColumnSng.cs (2)
448get { return _m2.Select((m2, i) => Math.Sqrt(m2 / Math.Max(0, _cnz[i] - 1))).ToArray(); } 458get { return _m2.Select((m2, i) => m2 / Math.Max(0, _cnz[i] - 1)).ToArray(); }
Transforms\SkipTakeFilter.cs (1)
202return Math.Min(Math.Max(0, afterSkip), _take);
Utils\SequencePool.cs (1)
260long newSize = Math.Max((long)_bytes.Length + _bytes.Length / 2, ibLim + cbMax);
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
770maxInstancesToAccelerate = Math.Max(0, (accelMemBudgetMb * 1024 * 1024 - clusterBytes) / bytesPerInstance); 1476long maxInstancesToAccelerate = Math.Max(0, (accelMemBudgetMb * 1024 * 1024 - bytesPerCluster * k) / bytesPerInstance);
Microsoft.ML.StandardTrainers (2)
Standard\LogisticRegression\LogisticRegression.cs (1)
254ch.Info("Residual Deviance: \t{0} (on {1} degrees of freedom)", deviance, Math.Max(NumGoodRows - numParams, 0));
Standard\SdcaBinary.cs (1)
690int maxIterations = (int)Math.Max(1, 500000 / count) * 3;
Microsoft.ML.Transforms (3)
Dracula\CMCountTable.cs (1)
237: base(Math.Max(labelCardinality, table.LabelCardinality))
Dracula\DictCountTable.cs (1)
182: base(Math.Max(labelCardinality, table.LabelCardinality))
Expression\BuiltinFunctions.cs (1)
288FunctionProviderUtils.Fn<I8, I8, I8>(Math.Max),
PresentationCore (2)
MS\Internal\IO\Packaging\NetStream.cs (1)
894_length = (int)(Math.Max(_offset + _length, b._offset + b._length) - _offset);
System\Windows\Media\MediaContext.cs (1)
566nextTickNeeded = TimeSpan.FromTicks(Math.Max(nextTickNeeded.Ticks, minimumDelay.Ticks));
PresentationFramework (1)
System\Windows\Documents\XamlToRtfWriter.cs (1)
1730tableWidth = Math.Max(tableWidth, lastCellX);
ReachFramework (1)
PrintConfig\PTProvider.cs (1)
816return (int)Math.Max(0, Math.Min(value, int.MaxValue));
System.Data.Common (1)
System\Data\Common\Int64Storage.cs (1)
128max = Math.Max(_values[record], max);
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
617delay = (uint)Math.Max(ADP.TimerRemainingMilliseconds(next.DueTime), 0);
System\Data\Odbc\OdbcDataReader.cs (1)
2277row[columnSize] = unchecked((int)Math.Min(Math.Max(int.MinValue, _metadata![i].size.ToInt64()), int.MaxValue));
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
716nextFileOffset = Math.Max(nextFileOffset, entry.GetOffsetOfCompressedData() + entry.CompressedLength);
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
354int newSegmentLength = (int)Math.Min(Math.Max(minimumRequired, currentSegmentLength * 2L), Array.MaxLength);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
683public static long Max(long x, long y) => Math.Max(x, y);
System.ServiceModel.NetNamedPipe (1)
System\Runtime\BackoffTimeoutHelper.cs (1)
72return Ticks.ToTimeSpan(Math.Max(
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.Parse.cs (2)
765long expectedLength = Math.Max(utf8Bom.Length, stream.Length - stream.Position) + 1; 848long expectedLength = Math.Max(utf8BomLength, stream.Length - stream.Position) + 1;
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
316m = Math.Max(serialized[i], m);