20 references to Abs
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpRetransmissionSettings.cs (3)
267long diff = Math.Abs(ts1.Ticks - ts2.Ticks); 268long max = Math.Max(Math.Abs(ts1.Ticks), Math.Abs(ts2.Ticks));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PatternMatchingTests.cs (2)
4908int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000); 4921int dt = (int)Math.Abs(DateTime.Now.Ticks % 1000000000);
Microsoft.ML.AutoML.Tests (1)
SweeperTests.cs (1)
169double metric = ((5 - Math.Abs(4 - foo)) * 200) + (1001 - Math.Abs(33 - bar)) + rand.Next(1, 20);
Microsoft.ML.Core (1)
Utilities\DoubleParser.cs (1)
705Contracts.Assert(Math.Abs(exp) < int.MaxValue);
Microsoft.ML.Transforms (1)
Expression\BuiltinFunctions.cs (1)
164FunctionProviderUtils.Fn<I8, I8>(Math.Abs),
PresentationCore (2)
MS\Internal\AnimatedTypeHelpers.cs (1)
418return Math.Abs(to - from);
System\Windows\Media\Animation\Clock.cs (1)
4163Debug.Assert(Math.Abs(optimizedInputTime - inputTime) <= error,
System.Data.Common (1)
System\Data\Filter\FunctionNode.cs (1)
325return (Math.Abs((long)argumentValues[0]));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesSamplerBuilder.cs (1)
51return Math.Abs(GetLowerLong(traceIdBytes)) < idUpperBound
System.Net.Mail (1)
System\Net\Mime\SmtpDateTime.cs (1)
343if (Math.Abs(sanitizedTimeSpan.Ticks) > TimeSpanMaxTicks)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
711public static long Abs(long value) => Math.Abs(value);
System.Windows.Forms (6)
System\Windows\Forms\ToolTip\ToolTip.cs (6)
1575locationWeights[i] += Math.Abs((long)intersection.Width * intersection.Height); // Intersection is a weight 1588locationClippedAreas[i] = (Math.Abs((long)possibleLocations[i].Width) - Math.Abs((long)locationAreaWithinScreen.Width)) 1589* (Math.Abs((long)possibleLocations[i].Height) - Math.Abs((long)locationAreaWithinScreen.Height)); 1603locationWithinTopControlAreas[i] = Math.Abs((long)locationWithinTopControlRectangle.Height * locationWithinTopControlRectangle.Width);