200 references to LoadUnsafe
System.Linq (3)
System\Linq\MaxMin.cs (3)
80
Vector256<T> best = Vector256.
LoadUnsafe
(ref current);
85
best = TMinMax.Compare(best, Vector256.
LoadUnsafe
(ref current));
88
best = TMinMax.Compare(best, Vector256.
LoadUnsafe
(ref lastVectorStart));
System.Numerics.Tensors (127)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (27)
337
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
760
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
774
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
915
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
929
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1021
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1034
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1106
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1119
Vector256<T> beg = transform.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1483
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1484
Vector256.
LoadUnsafe
(ref yRef));
1956
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1957
Vector256.
LoadUnsafe
(ref yRef));
1972
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1973
Vector256.
LoadUnsafe
(ref yRef));
2117
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2118
Vector256.
LoadUnsafe
(ref yRef));
2133
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2134
Vector256.
LoadUnsafe
(ref yRef));
2229
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2230
Vector256.
LoadUnsafe
(ref yRef));
2244
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2245
Vector256.
LoadUnsafe
(ref yRef));
2322
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2323
Vector256.
LoadUnsafe
(ref yRef));
2337
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2338
Vector256.
LoadUnsafe
(ref yRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (27)
402
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
403
Vector256.
LoadUnsafe
(ref yRef));
944
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
945
Vector256.
LoadUnsafe
(ref yRef));
960
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
961
Vector256.
LoadUnsafe
(ref yRef));
1116
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1117
Vector256.
LoadUnsafe
(ref yRef));
1132
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1133
Vector256.
LoadUnsafe
(ref yRef));
1231
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1232
Vector256.
LoadUnsafe
(ref yRef));
1246
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1247
Vector256.
LoadUnsafe
(ref yRef));
1321
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1322
Vector256.
LoadUnsafe
(ref yRef));
1336
Vector256<T> beg = TBinaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1337
Vector256.
LoadUnsafe
(ref yRef));
1732
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2266
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2282
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2442
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2458
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2561
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2576
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2655
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
2670
Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef)),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (9)
336
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
816
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
830
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
968
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
982
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1071
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1084
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1153
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1166
Vector256<T> beg = op.Invoke(Vector256.
LoadUnsafe
(ref xRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (54)
421
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
422
Vector256.
LoadUnsafe
(ref yRef),
423
Vector256.
LoadUnsafe
(ref zRef));
1025
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1026
Vector256.
LoadUnsafe
(ref yRef),
1027
Vector256.
LoadUnsafe
(ref zRef));
1043
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1044
Vector256.
LoadUnsafe
(ref yRef),
1045
Vector256.
LoadUnsafe
(ref zRef));
1217
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1218
Vector256.
LoadUnsafe
(ref yRef),
1219
Vector256.
LoadUnsafe
(ref zRef));
1235
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1236
Vector256.
LoadUnsafe
(ref yRef),
1237
Vector256.
LoadUnsafe
(ref zRef));
1344
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1345
Vector256.
LoadUnsafe
(ref yRef),
1346
Vector256.
LoadUnsafe
(ref zRef));
1361
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1362
Vector256.
LoadUnsafe
(ref yRef),
1363
Vector256.
LoadUnsafe
(ref zRef));
1442
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1443
Vector256.
LoadUnsafe
(ref yRef),
1444
Vector256.
LoadUnsafe
(ref zRef));
1459
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1460
Vector256.
LoadUnsafe
(ref yRef),
1461
Vector256.
LoadUnsafe
(ref zRef));
1894
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
1895
Vector256.
LoadUnsafe
(ref yRef),
2490
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2491
Vector256.
LoadUnsafe
(ref yRef),
2508
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2509
Vector256.
LoadUnsafe
(ref yRef),
2686
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2687
Vector256.
LoadUnsafe
(ref yRef),
2704
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2705
Vector256.
LoadUnsafe
(ref yRef),
2817
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2818
Vector256.
LoadUnsafe
(ref yRef),
2834
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2835
Vector256.
LoadUnsafe
(ref yRef),
2919
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2920
Vector256.
LoadUnsafe
(ref yRef),
2936
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
2937
Vector256.
LoadUnsafe
(ref yRef),
3376
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
3962
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
3980
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4160
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4178
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4293
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4310
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4397
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
4414
Vector256<T> beg = TTernaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (9)
376
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
856
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
870
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1008
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1022
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1111
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1124
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1193
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
1206
Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.
LoadUnsafe
(ref xRef));
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
268
Vector256<T> result = Vector256.
LoadUnsafe
(ref xRef);
System.Private.CoreLib (70)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2507
(Vector256<ushort> utf16Lower, Vector256<ushort> utf16Upper) = Vector256.Widen(Vector256.
LoadUnsafe
(ref src));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
2330
public static unsafe Vector256<T> Load<T>(T* source) =>
LoadUnsafe
(ref *source);
2395
internal static Vector256<ushort> LoadUnsafe(ref char source) =>
LoadUnsafe
(ref Unsafe.As<char, ushort>(ref source));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
728
static Vector256<T> ISimdVector<Vector256<T>, T>.LoadUnsafe(ref readonly T source) => Vector256.
LoadUnsafe
(in source);
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (10)
329
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
353
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
354
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
463
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
485
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref searchSpace);
486
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref secondVector);
612
Vector256<byte> source = Vector256.
LoadUnsafe
(ref currentSearchSpace);
739
Vector256<byte> source = Vector256.
LoadUnsafe
(ref currentSearchSpace);
884
Vector256<byte> source = Vector256.
LoadUnsafe
(ref currentSearchSpace);
1014
Vector256<byte> source = Vector256.
LoadUnsafe
(ref currentSearchSpace);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
428
Vector256<byte> charMap256 = Vector256.
LoadUnsafe
(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map));
603
Vector256<byte> charMap256 = Vector256.
LoadUnsafe
(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (2)
941
Vector256<byte> tempFirst = Vector256.
LoadUnsafe
(ref first);
942
Vector256<byte> tempLast = Vector256.
LoadUnsafe
(ref last);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (15)
213
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
237
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
238
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
412
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
437
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
438
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
625
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
650
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
651
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
842
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
867
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
868
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
1038
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref currentSearchSpace);
1063
Vector256<short> source0 = Vector256.
LoadUnsafe
(ref firstVector);
1064
Vector256<short> source1 = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (21)
1408
equals = Vector256.Equals(values, Vector256.
LoadUnsafe
(ref currentSearchSpace));
1422
equals = Vector256.Equals(values, Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd));
1599
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.
LoadUnsafe
(ref currentSearchSpace)));
1613
equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd)));
1825
current = Vector256.
LoadUnsafe
(ref currentSearchSpace);
1840
current = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
2032
current = Vector256.
LoadUnsafe
(ref currentSearchSpace);
2047
current = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
2190
current = Vector256.
LoadUnsafe
(ref currentSearchSpace);
2206
current = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
2355
current = Vector256.
LoadUnsafe
(ref currentSearchSpace);
2371
current = Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd);
2683
current = Vector256.
LoadUnsafe
(ref searchSpace);
2868
current = Vector256.
LoadUnsafe
(ref searchSpace);
3018
current = Vector256.
LoadUnsafe
(ref searchSpace);
3279
current = Vector256.
LoadUnsafe
(ref searchSpace);
3554
inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.
LoadUnsafe
(ref current) - lowVector, rangeVector));
3565
inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd) - lowVector, rangeVector));
3708
inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.
LoadUnsafe
(ref searchSpace) - lowVector, rangeVector));
3806
count += BitOperations.PopCount(Vector256.Equals(Vector256.
LoadUnsafe
(ref current), targetVector).ExtractMostSignificantBits());
3811
uint mask = Vector256.Equals(Vector256.
LoadUnsafe
(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (7)
122
Vector256.
LoadUnsafe
(ref searchSpace) |
123
Vector256.
LoadUnsafe
(ref Unsafe.Subtract(ref searchSpaceEnd, Vector256<T>.Count)));
131
Vector256.
LoadUnsafe
(ref searchSpace) |
155
Vector256.
LoadUnsafe
(ref current) |
171
Vector256.
LoadUnsafe
(ref searchSpace) |
173
Vector256.
LoadUnsafe
(ref Unsafe.Subtract(ref searchSpaceEnd, 2 * Vector256<T>.Count)) |
174
Vector256.
LoadUnsafe
(ref Unsafe.Subtract(ref searchSpaceEnd, Vector256<T>.Count)));
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (8)
324
rightValues = Vector256.
LoadUnsafe
(ref currentRightSearchSpace);
355
rightValues = Vector256.
LoadUnsafe
(ref oneVectorAwayFromRightEnd);
475
public static Vector256<T> Load256(ref T ptr) => Vector256.
LoadUnsafe
(ref ptr);
482
Vector256<T> leftValues = Vector256.
LoadUnsafe
(ref left);
483
Vector256<T> rightValues = Vector256.
LoadUnsafe
(ref right);
548
return Vector512.WidenLower(Vector256.
LoadUnsafe
(ref ptr).ToVector512());
558
Vector256<byte> leftNotWidened = Vector256.
LoadUnsafe
(ref utf8);
565
Vector256<ushort> right = Vector256.
LoadUnsafe
(ref utf16);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
1845
Vector256<ushort> utf16VectorFirst = Vector256.
LoadUnsafe
(ref utf16Buffer);