132 references to StoreUnsafe
System.Numerics.Tensors (114)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (24)
570
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
578
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
586
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
594
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
602
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
610
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
618
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
625
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
950
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1122
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1237
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1327
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1894
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
1902
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
1910
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
1918
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
1926
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
1934
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
1942
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
1949
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
2272
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2448
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2567
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2661
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (4)
292
(v & Vector256<byte>.One).
StoreUnsafe
(ref Unsafe.As<bool, byte>(ref destinationRef), (uint)i);
406
(v & Vector256<byte>.One).
StoreUnsafe
(ref Unsafe.As<bool, byte>(ref destinationRef), (uint)i);
531
(v & Vector256<byte>.One).
StoreUnsafe
(ref Unsafe.As<bool, byte>(ref destinationRef), (uint)i);
678
(v & Vector256<byte>.One).
StoreUnsafe
(ref Unsafe.As<bool, byte>(ref destinationRef), (uint)i);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (12)
479
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
486
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
493
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
500
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
507
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
514
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
521
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
528
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
820
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
972
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1075
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1157
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (36)
614
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
623
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
632
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
641
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
650
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
659
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
668
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
675
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
1033
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1225
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1352
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
1450
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2081
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
2090
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
2099
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
2108
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
2117
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
2126
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
2135
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
2142
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
2498
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2694
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2825
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
2927
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
3557
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 8));
3566
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 7));
3575
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 6));
3584
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 5));
3593
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 4));
3602
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 3));
3611
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<T>.Count * 2));
3618
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<T>.Count);
3970
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
4168
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
4301
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
4405
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<T>.Count);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (12)
110
first.
StoreUnsafe
(ref destination1Ref, (uint)i);
111
second.
StoreUnsafe
(ref destination2Ref, (uint)i);
123
first.
StoreUnsafe
(ref destination1Ref, (uint)i);
124
second.
StoreUnsafe
(ref destination2Ref, (uint)i);
263
first.
StoreUnsafe
(ref destination1Ref, (uint)i);
264
second.
StoreUnsafe
(ref destination2Ref, (uint)i);
290
.
StoreUnsafe
(ref destination1Ref, (uint)i);
295
.
StoreUnsafe
(ref destination2Ref, (uint)i);
448
first.
StoreUnsafe
(ref destination1Ref, (uint)i);
449
second.
StoreUnsafe
(ref destination2Ref, (uint)i);
475
.
StoreUnsafe
(ref destination1Ref, (uint)i);
480
.
StoreUnsafe
(ref destination2Ref, (uint)i);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToFourOperator.cs (8)
93
results.Item1.
StoreUnsafe
(ref destinationRef, (uint)i);
94
results.Item2.
StoreUnsafe
(ref destinationRef, (uint)(i + Vector256<TOutput>.Count));
95
results.Item3.
StoreUnsafe
(ref destinationRef, (uint)(i + (Vector256<TOutput>.Count * 2)));
96
results.Item4.
StoreUnsafe
(ref destinationRef, (uint)(i + (Vector256<TOutput>.Count * 3)));
108
results.Item1.
StoreUnsafe
(ref destinationRef, (uint)i);
109
results.Item2.
StoreUnsafe
(ref destinationRef, (uint)(i + Vector256<TOutput>.Count));
110
results.Item3.
StoreUnsafe
(ref destinationRef, (uint)(i + (Vector256<TOutput>.Count * 2)));
111
results.Item4.
StoreUnsafe
(ref destinationRef, (uint)(i + (Vector256<TOutput>.Count * 3)));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToTwoOperator.cs (4)
89
lower.
StoreUnsafe
(ref destinationRef, (uint)i);
90
upper.
StoreUnsafe
(ref destinationRef, (uint)(i + Vector256<TOutput>.Count));
102
lower.
StoreUnsafe
(ref destinationRef, (uint)i);
103
upper.
StoreUnsafe
(ref destinationRef, (uint)(i + Vector256<TOutput>.Count));
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (12)
519
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 8));
526
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 7));
533
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 6));
540
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 5));
547
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 4));
554
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 3));
561
vector.
StoreUnsafe
(ref dRef, remainder - (uint)(Vector256<TOutput>.Count * 2));
568
end.
StoreUnsafe
(ref dRef, endIndex - (uint)Vector256<TOutput>.Count);
860
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<TOutput>.Count);
1012
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<TOutput>.Count);
1115
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<TOutput>.Count);
1197
end.
StoreUnsafe
(ref dRef, remainder - (uint)Vector256<TOutput>.Count);
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryTwoToOneOperator.cs (2)
90
Vector256.LoadUnsafe(ref xRef, (uint)(i + Vector256<TInput>.Count))).
StoreUnsafe
(ref destinationRef, (uint)i);
103
Vector256.LoadUnsafe(ref xRef, (uint)(i + Vector256<TInput>.Count))).
StoreUnsafe
(ref destinationRef, (uint)i);
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
312
Vector256.
StoreUnsafe
(TReverser.Reverse(Vector256.LoadUnsafe(ref sourceRef, (uint)i)), ref destRef, (uint)i);
345
Vector256.
StoreUnsafe
(TReverser.Reverse(Vector256.LoadUnsafe(ref sourceRef, (uint)i)), ref destRef, (uint)i);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2510
utf16Upper.
StoreUnsafe
(ref dest, 16);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
840
static void ISimdVector<Vector256<T>, T>.StoreUnsafe(Vector256<T> vector, ref T destination, nuint elementOffset) => vector.
StoreUnsafe
(ref destination, elementOffset);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
1382
tempLast.
StoreUnsafe
(ref buf, (nuint)offset);
1383
tempFirst.
StoreUnsafe
(ref buf, (nuint)lastOffset);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.cs (4)
146
tempLast.
StoreUnsafe
(ref buf, (nuint)offset);
147
tempFirst.
StoreUnsafe
(ref buf, (nuint)lastOffset);
251
tempLast.
StoreUnsafe
(ref buf, (nuint)offset);
252
tempFirst.
StoreUnsafe
(ref buf, (nuint)lastOffset);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (2)
3138
result.
StoreUnsafe
(ref dst, idx);
3147
result.
StoreUnsafe
(ref dst, lastVectorIndex);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (1)
482
Vector256.
StoreUnsafe
(wide, ref *(ushort*)pDest, elementOffset);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (4)
1913
asciiVector.
StoreUnsafe
(ref asciiBuffer, currentOffsetInElements);
1974
asciiVector.GetLower().
StoreUnsafe
(ref asciiBuffer, 0); // how to store the lower part of a avx512
2001
asciiVector.GetLower().
StoreUnsafe
(ref asciiBuffer, currentOffsetInElements);
2054
asciiVector.GetLower().
StoreUnsafe
(ref asciiBuffer, currentOffsetInElements);
System.Runtime.Numerics (1)
System\Numerics\NumericsHelpers.cs (1)
139
Vector256.
StoreUnsafe
(complement, ref start, (nuint)offset);