60 references to Abs
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
229
AppendNanoseconds(builder, Math.
Abs
(nanos));
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
229
AppendNanoseconds(builder, Math.
Abs
(nanos));
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
861
return Math.
Abs
((int)result);
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
80
return Math.
Abs
((int)result);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSSignatureContext.cs (1)
58
int typesHash = Math.
Abs
((int)hash);
PresentationCore (9)
MS\Internal\AnimatedTypeHelpers.cs (3)
371
return Math.
Abs
((Int32)to - (Int32)from);
409
return Math.
Abs
(to - from);
414
return Math.
Abs
(to - from);
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
111
ull = (ulong)Math.
Abs
(Value);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
290
int rightShiftNextByteBy = Math.
Abs
((countOfBits - _cbitsInPartialByte) - Native.BitsPerByte);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
1292
int elapsedTime = Math.
Abs
(unchecked(stylusDownEventArgs.Timestamp - _lastTapTimeTicks));
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
209
if (context.QueuedInRangeCount > 0 || (Math.
Abs
(unchecked(timestamp - context.LastInRangeTime)) <= 500))
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
1090
int timeSpan = Math.
Abs
(unchecked(stylusDownEventArgs.Timestamp - stylusDevice.LastTapTime));
3251
if (Math.
Abs
(unchecked(timestamp - _lastInRangeTime)) <= 500)
PresentationFramework (28)
MS\Internal\Documents\DocumentGrid.cs (1)
323
if (Math.
Abs
(pageNumber - _firstVisiblePageNumber) > 1)
MS\Internal\Documents\DocumentPageTextView.cs (2)
655
while (Math.
Abs
(pagesMoved) < Math.
Abs
(count))
MS\Internal\Documents\MultiPageTextView.cs (8)
762
Invariant.Assert(Math.
Abs
(request.NewCount) >= Math.
Abs
(linesMoved));
834
Invariant.Assert(Math.
Abs
(request.NewCount) >= Math.
Abs
(pagesMoved));
982
Invariant.Assert(Math.
Abs
(pagesMoved) <= Math.
Abs
(count));
1195
int closestDistance = Math.
Abs
(count);
1220
int distance = Math.
Abs
(currentPageNumber - pageNumber);
MS\Internal\PtsHost\TableParaClient.cs (6)
652
int du = Math.Min(Math.
Abs
(rect.u - u), Math.
Abs
(rect.u + rect.du - u));
653
int dv = Math.Min(Math.
Abs
(rect.v - v), Math.
Abs
(rect.v + rect.dv - v));
1001
int iDistance = Math.
Abs
((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU);
1077
int iDistance = Math.
Abs
((cpc.Rect.u + cpc.Rect.du / 2) - suggestedU);
System\Windows\Application.cs (1)
2371
if (Math.
Abs
(diff) == 1)
System\Windows\Controls\DataGrid.cs (4)
5073
int newRowCount = Math.
Abs
(endIndex - startIndex) + 1;
5074
int newColumnCount = Math.
Abs
(endColumnIndex - startColumnIndex) + 1;
5093
int previousRowCount = Math.
Abs
(currentCellIndex - startIndex) + 1;
5095
int previousColumnCount = Math.
Abs
(currentCellColumnIndex - startColumnIndex) + 1;
System\Windows\Controls\ScrollViewer.cs (1)
1853
if (Math.
Abs
(Environment.TickCount - _panningInfo.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
System\Windows\Controls\TextRangeAdaptor.cs (1)
995
int absCount = (count == int.MinValue) ? int.MaxValue : Math.
Abs
(count);
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
1039
distance = Math.
Abs
(distance);
System\Windows\Documents\FlowPosition.cs (1)
315
distance = Math.
Abs
(distance);
System\Windows\Documents\TextRangeEditTables.cs (1)
1428
int cCols = Math.
Abs
(columnCount);
System\Windows\SystemFonts.cs (1)
1017
return (double)(Math.
Abs
(height) * 96 / dpi);
System.Data.Common (2)
System\Data\SQLTypes\SQLDecimal.cs (2)
3186
int lAdjust = Math.
Abs
(lPosition - n._bScale); // Precision adjustment
3225
lAdjust = Math.
Abs
(lPosition - n._bScale);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
102
int engineIndex = Math.
Abs
(Interlocked.Increment(ref s_allocateFromEngine) % s_engines.Length);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
67
Math.
Abs
(int.MinValue); // throw OverflowException
95
Math.
Abs
(int.MinValue); // throw OverflowException
123
Math.
Abs
(int.MinValue); // throw OverflowException
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (1)
99
realLength = Math.
Abs
(realLength);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
718
public static int Abs(int value) => Math.
Abs
(value);
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1006
int fastExponent = Math.
Abs
(exponent);
src\libraries\System.Private.CoreLib\src\System\Random.Net5CompatImpl.cs (1)
264
int subtraction = (seed == int.MinValue) ? int.MaxValue : Math.
Abs
(seed);
System.Private.DataContractSerialization (2)
System\Xml\XmlConverter.cs (2)
1073
offset += ToCharsD2(Math.
Abs
(ts.Hours), chars, offset);
1075
offset += ToCharsD2(Math.
Abs
(ts.Minutes), chars, offset);
System.Private.Xml (1)
System\Xml\Xsl\XPathConvert.cs (1)
1042
(idx == mantissaSize - 1) && Math.
Abs
(mantissa[idx] - mantissaPrec[idx]) <= 1
System.Runtime.Caching (2)
System\Runtime\Caching\CacheUsage.cs (2)
28
Debug.Assert((Math.
Abs
(entryIndex) & ENTRY_MASK) == (Math.
Abs
(entryIndex)), "(Math.Abs(entryIndex) & ENTRY_MASK) == Math.Abs(entryIndex)");
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
427
int cat = Math.
Abs
((int)categoryCode) - 1;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
661
int height = Math.
Abs
(_provider.GetLogfont().lfHeight);;
MS\Internal\AutomationProxies\WindowsMenu.cs (1)
2324
cMoves = Math.
Abs
(cMoves);