29 references to IsNaN
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1244
|| (typeof(TKey) == typeof(Half) && Half.
IsNaN
((Half)(object)keys[i]))
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ArraySortHelper.cs (1)
1244
|| (typeof(TKey) == typeof(Half) && Half.
IsNaN
((Half)(object)keys[i]))
Microsoft.CodeAnalysis (1)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1244
|| (typeof(TKey) == typeof(Half) && Half.
IsNaN
((Half)(object)keys[i]))
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1244
|| (typeof(TKey) == typeof(Half) && Half.
IsNaN
((Half)(object)keys[i]))
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
24
if (Half.
IsNaN
(value) && !CborConformanceModeHelpers.RequiresPreservingFloatPrecision(ConformanceMode))
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (1)
1121
(typeof(TKey) == typeof(Half) && Half.
IsNaN
((Half)(object)keys[i])))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (18)
169
if (
IsNaN
(left) ||
IsNaN
(right))
205
if (
IsNaN
(left) ||
IsNaN
(right))
235
if (
IsNaN
(left) ||
IsNaN
(right))
466
if (
IsNaN
(this))
468
return
IsNaN
(other) ? 0 : -1;
471
if (
IsNaN
(other))
502
|| (
IsNaN
(this) &&
IsNaN
(other));
1133
return
IsNaN
(value) ? value : new Half((ushort)(value._value ^ SignMask));
1734
if (!
IsNaN
(y))
1762
if (!
IsNaN
(y))
1776
if (
IsNaN
(value))
1916
if ((ax > ay) ||
IsNaN
(ay))
1944
if ((ax < ay) ||
IsNaN
(ay))
2162
IsNaN
(value) ? 0.0m : (decimal)value;
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (2)
4425
result = Half.
IsNaN
(actualValue) ? Zero : (BigInteger)actualValue;
4548
result = Half.
IsNaN
(actualValue) ? Zero : (BigInteger)actualValue;
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (3)
75
Debug.Assert(!Half.
IsNaN
(result) && !Half.IsInfinity(result));
199
if (Half.
IsNaN
(value))
224
(!Half.
IsNaN
(result) || buffer.SequenceEqual(JsonConstants.NaNValue)) &&