66 references to Max
ILCompiler.Compiler (3)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
157segmentFileSize = Math.Max(segmentFileSize, fileOffset - segmentFileOffset); 392machSection.Log2Alignment = Math.Max(machSection.Log2Alignment, (uint)BitOperations.Log2((uint)alignment));
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
ILCompiler.ReadyToRun (5)
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (2)
156maxNativeDelta = Math.Max(maxNativeDelta, locInfo.nativeOffset - previousNativeOffset); 157maxILValue = Math.Max(maxILValue, locInfo.ilOffset + 3);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
157segmentFileSize = Math.Max(segmentFileSize, fileOffset - segmentFileOffset); 392machSection.Log2Alignment = Math.Max(machSection.Log2Alignment, (uint)BitOperations.Log2((uint)alignment));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (1)
1124uint numPages = Math.Max(dataPages, 1); // Ensure at least one page is allocated for the minimum
ILCompiler.TypeSystem (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
293char[] poolArray = ArrayPool<char>.Shared.Rent((int)Math.Max((uint)(_pos + additionalCapacityBeyondPos), (uint)_chars.Length * 2));
Microsoft.AspNetCore.HttpLogging (1)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
293char[] poolArray = ArrayPool<char>.Shared.Rent((int)Math.Max((uint)(_pos + additionalCapacityBeyondPos), (uint)_chars.Length * 2));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http2\Http2Connection.cs (1)
226internal uint MaxTrackedStreams => Math.Max(_serverSettings.MaxConcurrentStreams * 2, 100);
Microsoft.AspNetCore.WebSockets (1)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
293char[] poolArray = ArrayPool<char>.Shared.Rent((int)Math.Max((uint)(_pos + additionalCapacityBeyondPos), (uint)_chars.Length * 2));
Microsoft.Build (1)
BackEnd\Components\Logging\LoggingService.cs (1)
338_queueCapacity = Math.Max(0, _queueCapacity);
Microsoft.Build.Framework (1)
Utilities\ValueStringBuilder.cs (1)
415int newCapacity = (int)Math.Max(
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (2)
110maxMethodCallChain = Math.Max(maxMethodCallChain, interproceduralAnalysisConfig.MaxInterproceduralMethodCallChain); 111maxLambdaorLocalFunctionCallChain = Math.Max(maxLambdaorLocalFunctionCallChain, interproceduralAnalysisConfig.MaxInterproceduralLambdaOrLocalFunctionCallChain);
Microsoft.CodeAnalysis.NetAnalyzers (2)
src\9382845807600969\InterproceduralAnalysisConfiguration.cs (2)
109maxMethodCallChain = Math.Max(maxMethodCallChain, interproceduralAnalysisConfig.MaxInterproceduralMethodCallChain); 110maxLambdaorLocalFunctionCallChain = Math.Max(maxLambdaorLocalFunctionCallChain, interproceduralAnalysisConfig.MaxInterproceduralLambdaOrLocalFunctionCallChain);
Microsoft.Data.Analysis (4)
PrimitiveDataFrameColumnComputations.cs (4)
4669ret = (uint)(Math.Max(readOnlySpan[i], ret)); 4713ret = (uint)Math.Max(span[(int)row], ret); 4925value = (uint)(Math.Max(readOnlySpan[i], value)); 4952value = (uint)(Math.Max(readOnlySpan[(int)row], value));
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Contracts\GCInfo\X86\GCInfo.cs (1)
491cursor = Math.Max(cursor, eEnd);
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
Microsoft.Extensions.DataIngestion (1)
Chunkers\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
Microsoft.ML.Tokenizers (1)
Utils\ValueStringBuilder.cs (1)
399int newCapacity = (int)Math.Max(
Microsoft.Private.Windows.Core (1)
System\Text\ValueStringBuilder.cs (1)
328int newCapacity = (int)Math.Max(
PresentationCore (2)
System\Windows\Media\Imaging\TransformedBitmap.cs (2)
175uint width = Math.Max(1, (uint)(scaleX * _source.PixelWidth + 0.5)); 176uint height = Math.Max(1, (uint)(scaleY * _source.PixelHeight + 0.5));
PresentationFramework (3)
System\Windows\Controls\PrintDialog.cs (3)
297MinPage = Math.Max(1, Math.Min(_minPage, _maxPage)) 299dlg.MaxPage = Math.Max(dlg.MinPage, Math.Max(_minPage, _maxPage));
ReachFramework (2)
AlphaFlattener\Flattener.cs (2)
1225uint dcDpi = Math.Max(PrintQueue.GetDpiX(dc), PrintQueue.GetDpiY(dc)); 1226Configuration.RasterizationDPI = (int)(Math.Max(dcDpi, 300));
System.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Data.Common (1)
System\Data\Common\UInt32Storage.cs (1)
128max = Math.Max(_values[record], max);
System.Diagnostics.DiagnosticSource (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Net.Http (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Net.Mail (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Private.CoreLib (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.cs (1)
200eventBufferSize = Math.Max(eventBufferSize, 1024);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (1)
652uint newCapacity = Math.Max(requiredMinCapacity, Math.Min((uint)_chars.Length * 2, string.MaxLength));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.Blocking.cs (2)
338MaxDelayMs = Math.Max(1, Math.Min(MaxDelayMs, GateThread.GateActivitiesPeriodMs)); 339DelayStepMs = Math.Max(1, Math.Min(DelayStepMs, MaxDelayMs));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
596public static uint Max(uint x, uint y) => Math.Max(x, y);
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Private.Windows.Core (1)
System\Text\ValueStringBuilder.cs (1)
328int newCapacity = (int)Math.Max(
System.Private.Xml (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Reflection.Metadata (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Runtime.Numerics (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (1)
293int newCapacity = (int)Math.Max(
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.ServiceProcess.ServiceController (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Text.Encodings.Web (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Text.Json (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Text.RegularExpressions (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(
System.Web.HttpUtility (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
259int newCapacity = (int)Math.Max(