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