224 references to LoadUnsafe
System.IO.Hashing (4)
System\IO\Hashing\Crc32.Vectorized.cs (4)
47x1 = Vector128.LoadUnsafe(ref srcRef).AsUInt64(); 63Vector128<ulong> y5 = Vector128.LoadUnsafe(ref srcRef).AsUInt64(); 88x1 = Vector128.LoadUnsafe(ref srcRef).AsUInt64(); 98x1 = FoldPolynomialPair(Vector128.LoadUnsafe(ref srcRef).AsUInt64(), x1,
System.Linq (3)
System\Linq\MaxMin.cs (3)
56Vector128<T> best = Vector128.LoadUnsafe(ref current); 61best = TMinMax.Compare(best, Vector128.LoadUnsafe(ref current)); 64best = TMinMax.Compare(best, Vector128.LoadUnsafe(ref lastVectorStart));
System.Numerics.Tensors (127)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (27)
156Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 799Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 813Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 946Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 960Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 1046Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 1059Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 1129Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 1142Vector128<T> beg = transform.Invoke(Vector128.LoadUnsafe(ref xRef)); 1276Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1277Vector128.LoadUnsafe(ref yRef)); 1998Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1999Vector128.LoadUnsafe(ref yRef)); 2014Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2015Vector128.LoadUnsafe(ref yRef)); 2151Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2152Vector128.LoadUnsafe(ref yRef)); 2167Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2168Vector128.LoadUnsafe(ref yRef)); 2257Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2258Vector128.LoadUnsafe(ref yRef)); 2272Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2273Vector128.LoadUnsafe(ref yRef)); 2348Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2349Vector128.LoadUnsafe(ref yRef)); 2363Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2364Vector128.LoadUnsafe(ref yRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (27)
160Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 161Vector128.LoadUnsafe(ref yRef)); 986Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 987Vector128.LoadUnsafe(ref yRef)); 1002Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1003Vector128.LoadUnsafe(ref yRef)); 1150Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1151Vector128.LoadUnsafe(ref yRef)); 1166Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1167Vector128.LoadUnsafe(ref yRef)); 1259Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1260Vector128.LoadUnsafe(ref yRef)); 1274Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1275Vector128.LoadUnsafe(ref yRef)); 1347Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1348Vector128.LoadUnsafe(ref yRef)); 1362Vector128<T> beg = TBinaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1363Vector128.LoadUnsafe(ref yRef)); 1494Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2310Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2326Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2478Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2494Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2591Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2606Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2683Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)), 2698Vector128<T> beg = TBinaryOperator.Invoke(TTransformOperator.Invoke(Vector128.LoadUnsafe(ref xRef)),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (9)
125Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 855Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 869Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 999Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 1013Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 1096Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 1109Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 1176Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef)); 1189Vector128<T> beg = op.Invoke(Vector128.LoadUnsafe(ref xRef));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (54)
148Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 149Vector128.LoadUnsafe(ref yRef), 150Vector128.LoadUnsafe(ref zRef)); 1070Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1071Vector128.LoadUnsafe(ref yRef), 1072Vector128.LoadUnsafe(ref zRef)); 1088Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1089Vector128.LoadUnsafe(ref yRef), 1090Vector128.LoadUnsafe(ref zRef)); 1254Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1255Vector128.LoadUnsafe(ref yRef), 1256Vector128.LoadUnsafe(ref zRef)); 1272Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1273Vector128.LoadUnsafe(ref yRef), 1274Vector128.LoadUnsafe(ref zRef)); 1375Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1376Vector128.LoadUnsafe(ref yRef), 1377Vector128.LoadUnsafe(ref zRef)); 1392Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1393Vector128.LoadUnsafe(ref yRef), 1394Vector128.LoadUnsafe(ref zRef)); 1471Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1472Vector128.LoadUnsafe(ref yRef), 1473Vector128.LoadUnsafe(ref zRef)); 1488Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1489Vector128.LoadUnsafe(ref yRef), 1490Vector128.LoadUnsafe(ref zRef)); 1625Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 1626Vector128.LoadUnsafe(ref yRef), 2537Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2538Vector128.LoadUnsafe(ref yRef), 2555Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2556Vector128.LoadUnsafe(ref yRef), 2725Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2726Vector128.LoadUnsafe(ref yRef), 2743Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2744Vector128.LoadUnsafe(ref yRef), 2850Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2851Vector128.LoadUnsafe(ref yRef), 2867Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2868Vector128.LoadUnsafe(ref yRef), 2950Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2951Vector128.LoadUnsafe(ref yRef), 2967Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 2968Vector128.LoadUnsafe(ref yRef), 3112Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4010Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4028Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4200Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4218Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4327Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4344Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4429Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef), 4446Vector128<T> beg = TTernaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef),
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (9)
165Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 895Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 909Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1039Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1053Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1136Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1149Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1216Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef)); 1229Vector128<TOutput> beg = TUnaryOperator.Invoke(Vector128.LoadUnsafe(ref xRef));
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
359Vector128<T> result = Vector128.LoadUnsafe(ref xRef);
System.Private.CoreLib (90)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
1369str = Vector128.LoadUnsafe(ref *src);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
480Vector128<byte> str = Vector128.LoadUnsafe(ref *src);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (1)
718Vector128<ushort> utf16VectorLower = Vector128.LoadUnsafe(ref *src);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2523(Vector128<ushort> utf16Lower, Vector128<ushort> utf16Upper) = Vector128.Widen(Vector128.LoadUnsafe(ref src));
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
699/// <inheritdoc cref="Vector128.LoadUnsafe{T}(ref readonly T)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
732/// <inheritdoc cref="Vector128.LoadUnsafe{T}(ref readonly T)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
787/// <inheritdoc cref="Vector128.LoadUnsafe{T}(ref readonly T)" /> 790public static Vector4 LoadUnsafe(ref readonly float source) => Vector128.LoadUnsafe(in source).AsVector4();
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
2233public static unsafe Vector128<T> Load<T>(T* source) => LoadUnsafe(ref *source); 2298internal static Vector128<ushort> LoadUnsafe(ref char source) => LoadUnsafe(ref Unsafe.As<char, ushort>(ref source));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
740static Vector128<T> ISimdVector<Vector128<T>, T>.LoadUnsafe(ref readonly T source) => Vector128.LoadUnsafe(in source);
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (18)
382Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 406Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 407Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 514Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 536Vector128<short> source0 = Vector128.LoadUnsafe(ref searchSpace); 537Vector128<short> source1 = Vector128.LoadUnsafe(ref secondVector); 635Vector128<byte> source0 = Vector128.LoadUnsafe(ref firstVector); 636Vector128<byte> source1 = Vector128.LoadUnsafe(ref halfVectorAwayFromEnd); 661Vector128<byte> source = Vector128.LoadUnsafe(ref currentSearchSpace); 760Vector128<byte> source0 = Vector128.LoadUnsafe(ref searchSpace); 761Vector128<byte> source1 = Vector128.LoadUnsafe(ref secondVector); 788Vector128<byte> source = Vector128.LoadUnsafe(ref currentSearchSpace); 907Vector128<byte> source0 = Vector128.LoadUnsafe(ref firstVector); 908Vector128<byte> source1 = Vector128.LoadUnsafe(ref halfVectorAwayFromEnd); 936Vector128<byte> source = Vector128.LoadUnsafe(ref currentSearchSpace); 1035Vector128<byte> source0 = Vector128.LoadUnsafe(ref searchSpace); 1036Vector128<byte> source1 = Vector128.LoadUnsafe(ref secondVector); 1066Vector128<byte> source = Vector128.LoadUnsafe(ref currentSearchSpace);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
513Vector128<byte> charMapLower = Vector128.LoadUnsafe(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map)); 690Vector128<byte> charMapLower = Vector128.LoadUnsafe(ref Unsafe.As<ProbabilisticMap, byte>(ref state.Map));
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (2)
149Vector128.LoadUnsafe(ref value.GetRawStringDataAsUInt16()), 150Vector128.LoadUnsafe(ref Unsafe.AddByteOffset(ref value.GetRawStringDataAsUInt16(), SecondReadByteOffset)));
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (2)
980Vector128<ushort> tempFirst = Vector128.LoadUnsafe(ref first); 981Vector128<ushort> tempLast = Vector128.LoadUnsafe(ref last);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (15)
271Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 295Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 296Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 472Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 497Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 498Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 686Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 711Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 712Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 904Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 929Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 930Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 1099Vector128<short> source0 = Vector128.LoadUnsafe(ref currentSearchSpace); 1124Vector128<short> source0 = Vector128.LoadUnsafe(ref firstVector); 1125Vector128<short> source1 = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (21)
1438equals = Vector128.Equals(values, Vector128.LoadUnsafe(ref currentSearchSpace)); 1452equals = Vector128.Equals(values, Vector128.LoadUnsafe(ref oneVectorAwayFromEnd)); 1629equals = TNegator.NegateIfNeeded(Vector128.Equals(values, Vector128.LoadUnsafe(ref currentSearchSpace))); 1643equals = TNegator.NegateIfNeeded(Vector128.Equals(values, Vector128.LoadUnsafe(ref oneVectorAwayFromEnd))); 1857current = Vector128.LoadUnsafe(ref currentSearchSpace); 1872current = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 2064current = Vector128.LoadUnsafe(ref currentSearchSpace); 2079current = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 2224current = Vector128.LoadUnsafe(ref currentSearchSpace); 2240current = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 2390current = Vector128.LoadUnsafe(ref currentSearchSpace); 2406current = Vector128.LoadUnsafe(ref oneVectorAwayFromEnd); 2712current = Vector128.LoadUnsafe(ref searchSpace); 2898current = Vector128.LoadUnsafe(ref searchSpace); 3048current = Vector128.LoadUnsafe(ref searchSpace); 3312current = Vector128.LoadUnsafe(ref searchSpace); 3525inRangeVector = TNegator.NegateIfNeeded(Vector128.LessThanOrEqual(Vector128.LoadUnsafe(ref current) - lowVector, rangeVector)); 3536inRangeVector = TNegator.NegateIfNeeded(Vector128.LessThanOrEqual(Vector128.LoadUnsafe(ref oneVectorAwayFromEnd) - lowVector, rangeVector)); 3681inRangeVector = TNegator.NegateIfNeeded(Vector128.LessThanOrEqual(Vector128.LoadUnsafe(ref searchSpace) - lowVector, rangeVector)); 3821count += BitOperations.PopCount(Vector128.Equals(Vector128.LoadUnsafe(ref current), targetVector).ExtractMostSignificantBits()); 3826uint mask = Vector128.Equals(Vector128.LoadUnsafe(ref oneVectorAwayFromEnd), targetVector).ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
240Vector128<TFrom> srcVector = Vector128.LoadUnsafe(ref *pSrc);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (7)
112Vector128.LoadUnsafe(ref searchSpace) | 113Vector128.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, Vector128<T>.Count))); 183Vector128.LoadUnsafe(ref searchSpace) | 207Vector128.LoadUnsafe(ref current) | 223Vector128.LoadUnsafe(ref searchSpace) | 225Vector128.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, 2 * Vector128<T>.Count)) | 226Vector128.LoadUnsafe(ref Unsafe.Subtract(ref searchSpaceEnd, Vector128<T>.Count)));
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (6)
140rightValues = Vector128.LoadUnsafe(ref currentRightSearchSpace); 156rightValues = Vector128.LoadUnsafe(ref oneVectorAwayFromRightEnd); 397rightValues = Vector128.LoadUnsafe(ref currentRightSearchSpace); 428rightValues = Vector128.LoadUnsafe(ref oneVectorAwayFromRightEnd); 474public static Vector128<T> Load128(ref T ptr) => Vector128.LoadUnsafe(ref ptr); 541(Vector128<ushort> lower, Vector128<ushort> upper) = Vector128.Widen(Vector128.LoadUnsafe(ref ptr));
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (5)
992firstVector = Vector128.LoadUnsafe(ref *(ushort*)pBuffer); 1036firstVector = Vector128.LoadUnsafe(ref *(ushort*)pBuffer); 1067firstVector = Vector128.LoadUnsafe(ref *(ushort*)pBuffer); 1085firstVector = Vector128.LoadUnsafe(ref *(ushort*)pBuffer); 1727Vector128<ushort> utf16VectorFirst = Vector128.LoadUnsafe(ref utf16Buffer);