200 references to LoadUnsafe
System.IO.Hashing (1)
System\IO\Hashing\Adler32.cs (1)
372Vector256<byte> data = Vector256.LoadUnsafe(ref sourceRef);
System.Linq (3)
System\Linq\MaxMin.cs (3)
80Vector256<T> best = Vector256.LoadUnsafe(ref current); 85best = TMinMax.Compare(best, Vector256.LoadUnsafe(ref current)); 88best = TMinMax.Compare(best, Vector256.LoadUnsafe(ref lastVectorStart));
System.Numerics.Tensors (127)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (27)
337Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 760Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 774Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 915Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 929Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 1021Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 1034Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 1106Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 1119Vector256<T> beg = transform.Invoke(Vector256.LoadUnsafe(ref xRef)); 1483Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1484Vector256.LoadUnsafe(ref yRef)); 1956Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1957Vector256.LoadUnsafe(ref yRef)); 1972Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1973Vector256.LoadUnsafe(ref yRef)); 2117Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2118Vector256.LoadUnsafe(ref yRef)); 2133Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2134Vector256.LoadUnsafe(ref yRef)); 2229Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2230Vector256.LoadUnsafe(ref yRef)); 2244Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2245Vector256.LoadUnsafe(ref yRef)); 2322Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2323Vector256.LoadUnsafe(ref yRef)); 2337Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2338Vector256.LoadUnsafe(ref yRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (27)
402Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 403Vector256.LoadUnsafe(ref yRef)); 944Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 945Vector256.LoadUnsafe(ref yRef)); 960Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 961Vector256.LoadUnsafe(ref yRef)); 1116Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1117Vector256.LoadUnsafe(ref yRef)); 1132Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1133Vector256.LoadUnsafe(ref yRef)); 1231Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1232Vector256.LoadUnsafe(ref yRef)); 1246Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1247Vector256.LoadUnsafe(ref yRef)); 1321Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1322Vector256.LoadUnsafe(ref yRef)); 1336Vector256<T> beg = TBinaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1337Vector256.LoadUnsafe(ref yRef)); 1732Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2266Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2282Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2442Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2458Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2561Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2576Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2655Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)), 2670Vector256<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector256.LoadUnsafe(ref xRef)),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (9)
336Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 816Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 830Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 968Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 982Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 1071Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 1084Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 1153Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef)); 1166Vector256<T> beg = op.Invoke(Vector256.LoadUnsafe(ref xRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (54)
421Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 422Vector256.LoadUnsafe(ref yRef), 423Vector256.LoadUnsafe(ref zRef)); 1025Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1026Vector256.LoadUnsafe(ref yRef), 1027Vector256.LoadUnsafe(ref zRef)); 1043Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1044Vector256.LoadUnsafe(ref yRef), 1045Vector256.LoadUnsafe(ref zRef)); 1217Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1218Vector256.LoadUnsafe(ref yRef), 1219Vector256.LoadUnsafe(ref zRef)); 1235Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1236Vector256.LoadUnsafe(ref yRef), 1237Vector256.LoadUnsafe(ref zRef)); 1344Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1345Vector256.LoadUnsafe(ref yRef), 1346Vector256.LoadUnsafe(ref zRef)); 1361Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1362Vector256.LoadUnsafe(ref yRef), 1363Vector256.LoadUnsafe(ref zRef)); 1442Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1443Vector256.LoadUnsafe(ref yRef), 1444Vector256.LoadUnsafe(ref zRef)); 1459Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1460Vector256.LoadUnsafe(ref yRef), 1461Vector256.LoadUnsafe(ref zRef)); 1894Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 1895Vector256.LoadUnsafe(ref yRef), 2490Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2491Vector256.LoadUnsafe(ref yRef), 2508Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2509Vector256.LoadUnsafe(ref yRef), 2686Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2687Vector256.LoadUnsafe(ref yRef), 2704Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2705Vector256.LoadUnsafe(ref yRef), 2817Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2818Vector256.LoadUnsafe(ref yRef), 2834Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2835Vector256.LoadUnsafe(ref yRef), 2919Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2920Vector256.LoadUnsafe(ref yRef), 2936Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 2937Vector256.LoadUnsafe(ref yRef), 3376Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 3962Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 3980Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4160Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4178Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4293Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4310Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4397Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef), 4414Vector256<T> beg = TTernaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (9)
376Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 856Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 870Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1008Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1022Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1111Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1124Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1193Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef)); 1206Vector256<TOutput> beg = TUnaryOperator.Invoke(Vector256.LoadUnsafe(ref xRef));
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
254Vector256<T> result = Vector256.LoadUnsafe(ref xRef);
System.Private.CoreLib (69)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (2)
2404public static unsafe Vector256<T> Load<T>(T* source) => LoadUnsafe(ref *source); 2469internal 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)
728static 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)
329Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 353Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 354Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 463Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 485Vector256<short> source0 = Vector256.LoadUnsafe(ref searchSpace); 486Vector256<short> source1 = Vector256.LoadUnsafe(ref secondVector); 612Vector256<byte> source = Vector256.LoadUnsafe(ref currentSearchSpace); 739Vector256<byte> source = Vector256.LoadUnsafe(ref currentSearchSpace); 884Vector256<byte> source = Vector256.LoadUnsafe(ref currentSearchSpace); 1014Vector256<byte> source = Vector256.LoadUnsafe(ref currentSearchSpace);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
428Vector256<byte> charMap256 = Vector256.LoadUnsafe(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map)); 603Vector256<byte> charMap256 = Vector256.LoadUnsafe(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (2)
941Vector256<byte> tempFirst = Vector256.LoadUnsafe(ref first); 942Vector256<byte> tempLast = Vector256.LoadUnsafe(ref last);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (15)
213Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 237Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 238Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 412Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 437Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 438Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 625Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 650Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 651Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 842Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 867Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 868Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 1038Vector256<short> source0 = Vector256.LoadUnsafe(ref currentSearchSpace); 1063Vector256<short> source0 = Vector256.LoadUnsafe(ref firstVector); 1064Vector256<short> source1 = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (21)
1567equals = Vector256.Equals(values, Vector256.LoadUnsafe(ref currentSearchSpace)); 1581equals = Vector256.Equals(values, Vector256.LoadUnsafe(ref oneVectorAwayFromEnd)); 1786equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref currentSearchSpace))); 1800equals = TNegator.NegateIfNeeded(Vector256.Equals(values, Vector256.LoadUnsafe(ref oneVectorAwayFromEnd))); 2050current = Vector256.LoadUnsafe(ref currentSearchSpace); 2065current = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 2291current = Vector256.LoadUnsafe(ref currentSearchSpace); 2306current = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 2460current = Vector256.LoadUnsafe(ref currentSearchSpace); 2476current = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 2635current = Vector256.LoadUnsafe(ref currentSearchSpace); 2651current = Vector256.LoadUnsafe(ref oneVectorAwayFromEnd); 3021current = Vector256.LoadUnsafe(ref searchSpace); 3236current = Vector256.LoadUnsafe(ref searchSpace); 3394current = Vector256.LoadUnsafe(ref searchSpace); 3667current = Vector256.LoadUnsafe(ref searchSpace); 3942inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.LoadUnsafe(ref current) - lowVector, rangeVector)); 3953inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.LoadUnsafe(ref oneVectorAwayFromEnd) - lowVector, rangeVector)); 4096inRangeVector = TNegator.NegateIfNeeded(Vector256.LessThanOrEqual(Vector256.LoadUnsafe(ref searchSpace) - lowVector, rangeVector)); 4194count += BitOperations.PopCount(Vector256.Equals(Vector256.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits()); 4199uint mask = Vector256.Equals(Vector256.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (7)
122Vector256.LoadUnsafe(ref searchSpace) | 123Vector256.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, Vector256<T>.Count))); 131Vector256.LoadUnsafe(ref searchSpace) | 155Vector256.LoadUnsafe(ref current) | 171Vector256.LoadUnsafe(ref searchSpace) | 173Vector256.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, 2 * Vector256<T>.Count)) | 174Vector256.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, Vector256<T>.Count)));
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (8)
324rightValues = Vector256.LoadUnsafe(ref currentRightSearchSpace); 355rightValues = Vector256.LoadUnsafe(ref oneVectorAwayFromRightEnd); 469public static Vector256<T> Load256(ref T ptr) => Vector256.LoadUnsafe(ref ptr); 476Vector256<T> leftValues = Vector256.LoadUnsafe(ref left); 477Vector256<T> rightValues = Vector256.LoadUnsafe(ref right); 538return Vector512.WidenLower(Vector256.LoadUnsafe(ref ptr).ToVector512()); 548Vector256<byte> leftNotWidened = Vector256.LoadUnsafe(ref utf8); 555Vector256<ushort> right = Vector256.LoadUnsafe(ref utf16);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
1848Vector256<ushort> utf16VectorFirst = Vector256.LoadUnsafe(ref utf16Buffer);