264 references to BitCast
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
270
public static float Invoke(short x) => (float)Unsafe.
BitCast
<short, Half>(x);
451
public static ushort Invoke(float x) => Unsafe.
BitCast
<Half, ushort>((Half)x);
System.Private.CoreLib (260)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (8)
900
public static unsafe long DoubleToInt64Bits(double value) => Unsafe.
BitCast
<double, long>(value);
908
public static unsafe double Int64BitsToDouble(long value) => Unsafe.
BitCast
<long, double>(value);
916
public static unsafe int SingleToInt32Bits(float value) => Unsafe.
BitCast
<float, int>(value);
924
public static unsafe float Int32BitsToSingle(int value) => Unsafe.
BitCast
<int, float>(value);
949
public static unsafe ulong DoubleToUInt64Bits(double value) => Unsafe.
BitCast
<double, ulong>(value);
958
public static unsafe double UInt64BitsToDouble(ulong value) => Unsafe.
BitCast
<ulong, double>(value);
967
public static unsafe uint SingleToUInt32Bits(float value) => Unsafe.
BitCast
<float, uint>(value);
976
public static unsafe float UInt32BitsToSingle(uint value) => Unsafe.
BitCast
<uint, float>(value);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (5)
1478
return result ?? Unsafe.
BitCast
<TStorage, TUnderlying>(value).ToString()!;
1516
result = Unsafe.
BitCast
<TStorage, TUnderlying>(value).ToString()!;
1868
if (GetNameInlined(enumInfo, Unsafe.
BitCast
<TUnderlying, TStorage>(value)) is string enumName)
1883
if (TryFormatFlagNames(enumInfo, Unsafe.
BitCast
<TUnderlying, TStorage>(value), destination, out charsWritten, ref destinationIsTooSmall) || destinationIsTooSmall)
1916
if (TryFormatFlagNames(GetEnumInfo<TStorage>(enumType), Unsafe.
BitCast
<TUnderlying, TStorage>(value), destination, out charsWritten, ref destinationIsTooSmall) ||
src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
749
uint realMask = (uint)(Unsafe.
BitCast
<bool, sbyte>(float.IsNaN(value)) - 1);
1078
uint subnormalMask = (uint)-Unsafe.
BitCast
<bool, byte>(offsetExponent == 0u);
1080
int infinityOrNaNMask = Unsafe.
BitCast
<bool, byte>(offsetExponent == HalfExponentMask);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (160)
326
Unsafe.
BitCast
<T, byte>(value),
333
Unsafe.
BitCast
<T, short>(value),
340
Unsafe.
BitCast
<T, int>(value),
347
Unsafe.
BitCast
<T, long>(value),
370
Unsafe.
BitCast
<T, byte>(value),
377
Unsafe.
BitCast
<T, short>(value),
384
Unsafe.
BitCast
<T, int>(value),
391
Unsafe.
BitCast
<T, long>(value),
626
Unsafe.
BitCast
<T, byte>(value),
632
Unsafe.
BitCast
<T, short>(value),
638
Unsafe.
BitCast
<T, int>(value),
644
Unsafe.
BitCast
<T, long>(value),
693
Unsafe.
BitCast
<T, byte>(value),
700
Unsafe.
BitCast
<T, short>(value),
707
Unsafe.
BitCast
<T, int>(value),
714
Unsafe.
BitCast
<T, long>(value),
829
Unsafe.
BitCast
<T, byte>(value),
836
Unsafe.
BitCast
<T, short>(value),
843
Unsafe.
BitCast
<T, int>(value),
850
Unsafe.
BitCast
<T, long>(value),
876
Unsafe.
BitCast
<T, byte>(value0),
877
Unsafe.
BitCast
<T, byte>(value1),
884
Unsafe.
BitCast
<T, short>(value0),
885
Unsafe.
BitCast
<T, short>(value1),
912
Unsafe.
BitCast
<T, byte>(value0),
913
Unsafe.
BitCast
<T, byte>(value1),
914
Unsafe.
BitCast
<T, byte>(value2),
921
Unsafe.
BitCast
<T, short>(value0),
922
Unsafe.
BitCast
<T, short>(value1),
923
Unsafe.
BitCast
<T, short>(value2),
940
Unsafe.
BitCast
<T, byte>(value0),
941
Unsafe.
BitCast
<T, byte>(value1),
942
Unsafe.
BitCast
<T, byte>(value2),
943
Unsafe.
BitCast
<T, byte>(value3),
950
Unsafe.
BitCast
<T, short>(value0),
951
Unsafe.
BitCast
<T, short>(value1),
952
Unsafe.
BitCast
<T, short>(value2),
953
Unsafe.
BitCast
<T, short>(value3),
1138
Unsafe.
BitCast
<T, byte>(value),
1145
Unsafe.
BitCast
<T, short>(value),
1152
Unsafe.
BitCast
<T, int>(value),
1159
Unsafe.
BitCast
<T, long>(value),
1185
Unsafe.
BitCast
<T, byte>(value0),
1186
Unsafe.
BitCast
<T, byte>(value1),
1193
Unsafe.
BitCast
<T, short>(value0),
1194
Unsafe.
BitCast
<T, short>(value1),
1221
Unsafe.
BitCast
<T, byte>(value0),
1222
Unsafe.
BitCast
<T, byte>(value1),
1223
Unsafe.
BitCast
<T, byte>(value2),
1230
Unsafe.
BitCast
<T, short>(value0),
1231
Unsafe.
BitCast
<T, short>(value1),
1232
Unsafe.
BitCast
<T, short>(value2),
1249
Unsafe.
BitCast
<T, byte>(value0),
1250
Unsafe.
BitCast
<T, byte>(value1),
1251
Unsafe.
BitCast
<T, byte>(value2),
1252
Unsafe.
BitCast
<T, byte>(value3),
1259
Unsafe.
BitCast
<T, short>(value0),
1260
Unsafe.
BitCast
<T, short>(value1),
1261
Unsafe.
BitCast
<T, short>(value2),
1262
Unsafe.
BitCast
<T, short>(value3),
1402
Unsafe.
BitCast
<T, byte>(lowInclusive),
1403
Unsafe.
BitCast
<T, byte>(highInclusive),
1411
Unsafe.
BitCast
<T, ushort>(lowInclusive),
1412
Unsafe.
BitCast
<T, ushort>(highInclusive),
1420
Unsafe.
BitCast
<T, uint>(lowInclusive),
1421
Unsafe.
BitCast
<T, uint>(highInclusive),
1429
Unsafe.
BitCast
<T, ulong>(lowInclusive),
1430
Unsafe.
BitCast
<T, ulong>(highInclusive),
1468
Unsafe.
BitCast
<T, byte>(lowInclusive),
1469
Unsafe.
BitCast
<T, byte>(highInclusive),
1477
Unsafe.
BitCast
<T, ushort>(lowInclusive),
1478
Unsafe.
BitCast
<T, ushort>(highInclusive),
1486
Unsafe.
BitCast
<T, uint>(lowInclusive),
1487
Unsafe.
BitCast
<T, uint>(highInclusive),
1495
Unsafe.
BitCast
<T, ulong>(lowInclusive),
1496
Unsafe.
BitCast
<T, ulong>(highInclusive),
1534
Unsafe.
BitCast
<T, byte>(lowInclusive),
1535
Unsafe.
BitCast
<T, byte>(highInclusive),
1543
Unsafe.
BitCast
<T, ushort>(lowInclusive),
1544
Unsafe.
BitCast
<T, ushort>(highInclusive),
1552
Unsafe.
BitCast
<T, uint>(lowInclusive),
1553
Unsafe.
BitCast
<T, uint>(highInclusive),
1561
Unsafe.
BitCast
<T, ulong>(lowInclusive),
1562
Unsafe.
BitCast
<T, ulong>(highInclusive),
1600
Unsafe.
BitCast
<T, byte>(lowInclusive),
1601
Unsafe.
BitCast
<T, byte>(highInclusive),
1609
Unsafe.
BitCast
<T, ushort>(lowInclusive),
1610
Unsafe.
BitCast
<T, ushort>(highInclusive),
1618
Unsafe.
BitCast
<T, uint>(lowInclusive),
1619
Unsafe.
BitCast
<T, uint>(highInclusive),
1627
Unsafe.
BitCast
<T, ulong>(lowInclusive),
1628
Unsafe.
BitCast
<T, ulong>(highInclusive),
1705
Unsafe.
BitCast
<T, byte>(value),
1711
Unsafe.
BitCast
<T, short>(value),
1717
Unsafe.
BitCast
<T, int>(value),
1723
Unsafe.
BitCast
<T, long>(value),
1772
Unsafe.
BitCast
<T, byte>(value),
1779
Unsafe.
BitCast
<T, short>(value),
1786
Unsafe.
BitCast
<T, int>(value),
1793
Unsafe.
BitCast
<T, long>(value),
1847
Unsafe.
BitCast
<T, byte>(value0),
1848
Unsafe.
BitCast
<T, byte>(value1),
1855
Unsafe.
BitCast
<T, short>(value0),
1856
Unsafe.
BitCast
<T, short>(value1),
1880
Unsafe.
BitCast
<T, byte>(value0),
1881
Unsafe.
BitCast
<T, byte>(value1),
1882
Unsafe.
BitCast
<T, byte>(value2),
1889
Unsafe.
BitCast
<T, short>(value0),
1890
Unsafe.
BitCast
<T, short>(value1),
1891
Unsafe.
BitCast
<T, short>(value2),
1941
Unsafe.
BitCast
<T, byte>(value0),
1942
Unsafe.
BitCast
<T, byte>(value1),
1949
Unsafe.
BitCast
<T, short>(value0),
1950
Unsafe.
BitCast
<T, short>(value1),
1974
Unsafe.
BitCast
<T, byte>(value0),
1975
Unsafe.
BitCast
<T, byte>(value1),
1976
Unsafe.
BitCast
<T, byte>(value2),
1983
Unsafe.
BitCast
<T, short>(value0),
1984
Unsafe.
BitCast
<T, short>(value1),
1985
Unsafe.
BitCast
<T, short>(value2),
2153
Unsafe.
BitCast
<T, byte>(value0),
2154
Unsafe.
BitCast
<T, byte>(value1),
2161
Unsafe.
BitCast
<T, short>(value0),
2162
Unsafe.
BitCast
<T, short>(value1),
2186
Unsafe.
BitCast
<T, byte>(value0),
2187
Unsafe.
BitCast
<T, byte>(value1),
2188
Unsafe.
BitCast
<T, byte>(value2),
2195
Unsafe.
BitCast
<T, short>(value0),
2196
Unsafe.
BitCast
<T, short>(value1),
2197
Unsafe.
BitCast
<T, short>(value2),
2238
Unsafe.
BitCast
<T, byte>(value0),
2239
Unsafe.
BitCast
<T, byte>(value1),
2246
Unsafe.
BitCast
<T, short>(value0),
2247
Unsafe.
BitCast
<T, short>(value1),
2271
Unsafe.
BitCast
<T, byte>(value0),
2272
Unsafe.
BitCast
<T, byte>(value1),
2273
Unsafe.
BitCast
<T, byte>(value2),
2280
Unsafe.
BitCast
<T, short>(value0),
2281
Unsafe.
BitCast
<T, short>(value1),
2282
Unsafe.
BitCast
<T, short>(value2),
3385
Unsafe.
BitCast
<T, byte>(oldValue),
3386
Unsafe.
BitCast
<T, byte>(newValue),
3397
Unsafe.
BitCast
<T, ushort>(oldValue),
3398
Unsafe.
BitCast
<T, ushort>(newValue),
3408
Unsafe.
BitCast
<T, int>(oldValue),
3409
Unsafe.
BitCast
<T, int>(newValue),
3419
Unsafe.
BitCast
<T, long>(oldValue),
3420
Unsafe.
BitCast
<T, long>(newValue),
3472
Unsafe.
BitCast
<T, byte>(oldValue),
3473
Unsafe.
BitCast
<T, byte>(newValue),
3483
Unsafe.
BitCast
<T, ushort>(oldValue),
3484
Unsafe.
BitCast
<T, ushort>(newValue),
3493
Unsafe.
BitCast
<T, int>(oldValue),
3494
Unsafe.
BitCast
<T, int>(newValue),
3503
Unsafe.
BitCast
<T, long>(oldValue),
3504
Unsafe.
BitCast
<T, long>(newValue),
3979
Unsafe.
BitCast
<T, byte>(value),
3986
Unsafe.
BitCast
<T, short>(value),
3993
Unsafe.
BitCast
<T, int>(value),
4000
Unsafe.
BitCast
<T, long>(value),
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (58)
79
TVectorUInt64 n = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(dn);
101
TVectorDouble ret = poly * Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>((n + TVectorUInt64.Create(V_DP64_BIAS)) << 52);
104
if (TVectorUInt64.GreaterThanAny(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(TVectorDouble.Abs(x)), TVectorUInt64.Create(V_ARG_MAX)))
187
TVectorUInt64 nl = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(dnl);
188
TVectorUInt64 nu = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(dnu);
223
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(polyl) + (nl << 52)),
224
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(polyu) + (nu << 52))
228
if (TVectorUInt32.GreaterThanAny(Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(TVectorSingle.Abs(x)), TVectorUInt32.Create(V_ARG_MAX)))
309
TVectorUInt64 specialMask = TVectorUInt64.GreaterThanOrEqual(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x) - TVectorUInt64.Create(V_MIN), TVectorUInt64.Create(V_MAX - V_MIN));
313
TVectorInt64 xBits = Unsafe.
BitCast
<TVectorDouble, TVectorInt64>(x);
316
TVectorDouble lessThanZeroMask = Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.LessThan(xBits, TVectorInt64.Zero));
325
TVectorDouble zeroMask = Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.Equals(xBits << 1, TVectorInt64.Zero));
336
| Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.GreaterThanOrEqual(xBits, TVectorInt64.Create((long)double.PositiveInfinityBits)));
339
TVectorDouble subnormalMask = TVectorDouble.AndNot(Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(specialMask), temp);
344
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x * 4503599627370496.0) - TVectorUInt64.Create(52ul << 52)),
348
specialMask = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(temp);
352
TVectorUInt64 vx = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x) - TVectorUInt64.Create(V_OFF);
353
TVectorDouble n = ConvertToDouble<TVectorInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorUInt64, TVectorInt64>(vx) >> 52);
357
TVectorDouble r = Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(vx) - TVectorDouble.One;
379
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(specialMask),
464
TVectorUInt32 specialMask = TVectorUInt32.GreaterThanOrEqual(Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x) - TVectorUInt32.Create(V_MIN), TVectorUInt32.Create(V_MAX - V_MIN));
493
TVectorSingle subnormalMask = TVectorSingle.AndNot(Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(specialMask), temp);
497
Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x * 8388608.0f) - TVectorUInt32.Create(23u << 23)),
501
specialMask = Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(temp);
504
TVectorUInt32 vx = Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x) - TVectorUInt32.Create(V_OFF);
505
TVectorSingle n = ConvertToSingle<TVectorInt32, TVectorSingle>(Unsafe.
BitCast
<TVectorUInt32, TVectorInt32>(vx) >> 23);
509
TVectorSingle r = Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(vx) - TVectorSingle.Create(1.0f);
522
Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(specialMask),
589
TVectorUInt64 specialMask = TVectorUInt64.GreaterThanOrEqual(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x) - TVectorUInt64.Create(V_MIN), TVectorUInt64.Create(V_MAX - V_MIN));
593
TVectorInt64 xBits = Unsafe.
BitCast
<TVectorDouble, TVectorInt64>(x);
596
TVectorDouble lessThanZeroMask = Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.LessThan(xBits, TVectorInt64.Zero));
605
TVectorDouble zeroMask = Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.Equals(xBits << 1, TVectorInt64.Zero));
616
| Unsafe.
BitCast
<TVectorInt64, TVectorDouble>(TVectorInt64.GreaterThanOrEqual(xBits, TVectorInt64.Create((long)double.PositiveInfinityBits)));
619
TVectorDouble subnormalMask = TVectorDouble.AndNot(Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(specialMask), temp);
624
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x * 4503599627370496.0) - TVectorUInt64.Create(52ul << 52)),
628
specialMask = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(temp);
632
TVectorUInt64 vx = Unsafe.
BitCast
<TVectorDouble, TVectorUInt64>(x) - TVectorUInt64.Create(V_OFF);
633
TVectorDouble n = ConvertToDouble<TVectorInt64, TVectorDouble>(Unsafe.
BitCast
<TVectorUInt64, TVectorInt64>(vx) >> 52);
637
TVectorDouble r = Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(vx) - TVectorDouble.One;
659
Unsafe.
BitCast
<TVectorUInt64, TVectorDouble>(specialMask),
738
TVectorUInt32 specialMask = TVectorUInt32.GreaterThanOrEqual(Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x) - TVectorUInt32.Create(V_MIN), TVectorUInt32.Create(V_MAX - V_MIN));
742
TVectorInt32 xBits = Unsafe.
BitCast
<TVectorSingle, TVectorInt32>(x);
745
TVectorSingle lessThanZeroMask = Unsafe.
BitCast
<TVectorInt32, TVectorSingle>(TVectorInt32.LessThan(xBits, TVectorInt32.Zero));
754
TVectorSingle zeroMask = Unsafe.
BitCast
<TVectorInt32, TVectorSingle>(TVectorInt32.Equals(xBits << 1, TVectorInt32.Zero));
765
| Unsafe.
BitCast
<TVectorInt32, TVectorSingle>(TVectorInt32.GreaterThanOrEqual(xBits, TVectorInt32.Create((int)float.PositiveInfinityBits)));
768
TVectorSingle subnormalMask = TVectorSingle.AndNot(Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(specialMask), temp);
773
Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x * 8388608.0f) - TVectorUInt32.Create(23u << 23)),
777
specialMask = Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(temp);
781
TVectorUInt32 vx = Unsafe.
BitCast
<TVectorSingle, TVectorUInt32>(x) - TVectorUInt32.Create(V_OFF);
782
TVectorSingle n = ConvertToSingle<TVectorInt32, TVectorSingle>(Unsafe.
BitCast
<TVectorUInt32, TVectorInt32>(vx) >> 23);
786
TVectorSingle r = Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(vx) - TVectorSingle.One;
802
Unsafe.
BitCast
<TVectorUInt32, TVectorSingle>(specialMask),
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (1)
30
return Unsafe.
BitCast
<T, ushort>(value) - 1u < 254u;
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (13)
1310
return PackedSpanHelpers.Contains(ref Unsafe.As<T, short>(ref searchSpace), Unsafe.
BitCast
<T, short>(value), length);
1487
? PackedSpanHelpers.IndexOf(ref Unsafe.As<TValue, char>(ref searchSpace), Unsafe.
BitCast
<TValue, char>(value), length)
1488
: PackedSpanHelpers.IndexOfAnyExcept(ref Unsafe.As<TValue, char>(ref searchSpace), Unsafe.
BitCast
<TValue, char>(value), length);
1673
char char0 = Unsafe.
BitCast
<TValue, char>(value0);
1674
char char1 = Unsafe.
BitCast
<TValue, char>(value1);
1900
? PackedSpanHelpers.IndexOfAny(ref Unsafe.As<TValue, char>(ref searchSpace), Unsafe.
BitCast
<TValue, char>(value0), Unsafe.
BitCast
<TValue, char>(value1), Unsafe.
BitCast
<TValue, char>(value2), length)
1901
: PackedSpanHelpers.IndexOfAnyExcept(ref Unsafe.As<TValue, char>(ref searchSpace), Unsafe.
BitCast
<TValue, char>(value0), Unsafe.
BitCast
<TValue, char>(value1), Unsafe.
BitCast
<TValue, char>(value2), length);
3484
char charLowInclusive = Unsafe.
BitCast
<T, char>(lowInclusive);
3485
char charRange = (char)(Unsafe.
BitCast
<T, char>(highInclusive) - charLowInclusive);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (2)
70
? (Unsafe.
BitCast
<T, byte>(Unsafe.Add(ref searchSpace, j)) > 127)
71
: (Unsafe.
BitCast
<T, char>(Unsafe.Add(ref searchSpace, j)) > 127))
src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (10)
180
=> Unsafe.
BitCast
<int, float>(Exchange(ref Unsafe.As<float, int>(ref location1), Unsafe.
BitCast
<float, int>(value)));
189
=> Unsafe.
BitCast
<long, double>(Exchange(ref Unsafe.As<double, long>(ref location1), Unsafe.
BitCast
<double, long>(value)));
368
=> Unsafe.
BitCast
<int, float>(CompareExchange(ref Unsafe.As<float, int>(ref location1), Unsafe.
BitCast
<float, int>(value), Unsafe.
BitCast
<float, int>(comparand)));
378
=> Unsafe.
BitCast
<long, double>(CompareExchange(ref Unsafe.As<double, long>(ref location1), Unsafe.
BitCast
<double, long>(value), Unsafe.
BitCast
<double, long>(comparand)));
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\ParallelLoopState.cs (2)
364
return Unsafe.
BitCast
<int, TInt>(Volatile.Read(ref Unsafe.As<TInt, int>(ref _lowestBreakIteration)));
368
return Unsafe.
BitCast
<long, TInt>(Volatile.Read(ref Unsafe.As<TInt, long>(ref _lowestBreakIteration)));