@@ -1210,7 +1210,7 @@ private static float MinMaxCore<TMinMaxOperator>(ReadOnlySpan<float> x)
1210
1210
1211
1211
/// <summary>Performs an element-wise operation on <paramref name="x"/> and writes the results to <paramref name="destination"/>.</summary>
1212
1212
/// <typeparam name="TUnaryOperator">Specifies the operation to perform on each element loaded from <paramref name="x"/>.</typeparam>
1213
- private static unsafe void InvokeSpanIntoSpan < TUnaryOperator > (
1213
+ private static void InvokeSpanIntoSpan < TUnaryOperator > (
1214
1214
ReadOnlySpan < float > x , Span < float > destination )
1215
1215
where TUnaryOperator : struct , IUnaryOperator
1216
1216
{
@@ -1326,7 +1326,7 @@ private static unsafe void InvokeSpanIntoSpan<TUnaryOperator>(
1326
1326
/// <typeparam name="TBinaryOperator">
1327
1327
/// Specifies the operation to perform on the pair-wise elements loaded from <paramref name="x"/> and <paramref name="y"/>.
1328
1328
/// </typeparam>
1329
- private static unsafe void InvokeSpanSpanIntoSpan < TBinaryOperator > (
1329
+ private static void InvokeSpanSpanIntoSpan < TBinaryOperator > (
1330
1330
ReadOnlySpan < float > x , ReadOnlySpan < float > y , Span < float > destination )
1331
1331
where TBinaryOperator : struct , IBinaryOperator
1332
1332
{
@@ -1456,7 +1456,7 @@ private static unsafe void InvokeSpanSpanIntoSpan<TBinaryOperator>(
1456
1456
/// <typeparam name="TBinaryOperator">
1457
1457
/// Specifies the operation to perform on each element loaded from <paramref name="x"/> with <paramref name="y"/>.
1458
1458
/// </typeparam>
1459
- private static unsafe void InvokeSpanScalarIntoSpan < TBinaryOperator > (
1459
+ private static void InvokeSpanScalarIntoSpan < TBinaryOperator > (
1460
1460
ReadOnlySpan < float > x , float y , Span < float > destination )
1461
1461
where TBinaryOperator : struct , IBinaryOperator =>
1462
1462
InvokeSpanScalarIntoSpan < IdentityOperator , TBinaryOperator > ( x , y , destination ) ;
@@ -1472,7 +1472,7 @@ private static unsafe void InvokeSpanScalarIntoSpan<TBinaryOperator>(
1472
1472
/// <typeparam name="TBinaryOperator">
1473
1473
/// Specifies the operation to perform on the transformed value from <paramref name="x"/> with <paramref name="y"/>.
1474
1474
/// </typeparam>
1475
- private static unsafe void InvokeSpanScalarIntoSpan < TTransformOperator , TBinaryOperator > (
1475
+ private static void InvokeSpanScalarIntoSpan < TTransformOperator , TBinaryOperator > (
1476
1476
ReadOnlySpan < float > x , float y , Span < float > destination )
1477
1477
where TTransformOperator : struct , IUnaryOperator
1478
1478
where TBinaryOperator : struct , IBinaryOperator
@@ -1603,7 +1603,7 @@ private static unsafe void InvokeSpanScalarIntoSpan<TTransformOperator, TBinaryO
1603
1603
/// Specifies the operation to perform on the pair-wise elements loaded from <paramref name="x"/>, <paramref name="y"/>,
1604
1604
/// and <paramref name="z"/>.
1605
1605
/// </typeparam>
1606
- private static unsafe void InvokeSpanSpanSpanIntoSpan < TTernaryOperator > (
1606
+ private static void InvokeSpanSpanSpanIntoSpan < TTernaryOperator > (
1607
1607
ReadOnlySpan < float > x , ReadOnlySpan < float > y , ReadOnlySpan < float > z , Span < float > destination )
1608
1608
where TTernaryOperator : struct , ITernaryOperator
1609
1609
{
@@ -1743,7 +1743,7 @@ private static unsafe void InvokeSpanSpanSpanIntoSpan<TTernaryOperator>(
1743
1743
/// Specifies the operation to perform on the pair-wise elements loaded from <paramref name="x"/> and <paramref name="y"/>
1744
1744
/// with <paramref name="z"/>.
1745
1745
/// </typeparam>
1746
- private static unsafe void InvokeSpanSpanScalarIntoSpan < TTernaryOperator > (
1746
+ private static void InvokeSpanSpanScalarIntoSpan < TTernaryOperator > (
1747
1747
ReadOnlySpan < float > x , ReadOnlySpan < float > y , float z , Span < float > destination )
1748
1748
where TTernaryOperator : struct , ITernaryOperator
1749
1749
{
@@ -1887,7 +1887,7 @@ private static unsafe void InvokeSpanSpanScalarIntoSpan<TTernaryOperator>(
1887
1887
/// Specifies the operation to perform on the pair-wise element loaded from <paramref name="x"/>, with <paramref name="y"/>,
1888
1888
/// and the element loaded from <paramref name="z"/>.
1889
1889
/// </typeparam>
1890
- private static unsafe void InvokeSpanScalarSpanIntoSpan < TTernaryOperator > (
1890
+ private static void InvokeSpanScalarSpanIntoSpan < TTernaryOperator > (
1891
1891
ReadOnlySpan < float > x , float y , ReadOnlySpan < float > z , Span < float > destination )
1892
1892
where TTernaryOperator : struct , ITernaryOperator
1893
1893
{
@@ -2142,7 +2142,7 @@ private static float GetFirstNaN(Vector512<float> vector)
2142
2142
/// and zero for all other elements.
2143
2143
/// </summary>
2144
2144
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2145
- private static unsafe Vector128 < float > CreateRemainderMaskSingleVector128 ( int count ) =>
2145
+ private static Vector128 < float > CreateRemainderMaskSingleVector128 ( int count ) =>
2146
2146
Vector128 . LoadUnsafe (
2147
2147
ref Unsafe . As < uint , float > ( ref MemoryMarshal . GetReference ( RemainderUInt32Mask_16x16 ) ) ,
2148
2148
( uint ) ( ( count * 16 ) + 12 ) ) ; // last four floats in the row
@@ -2152,7 +2152,7 @@ ref Unsafe.As<uint, float>(ref MemoryMarshal.GetReference(RemainderUInt32Mask_16
2152
2152
/// and zero for all other elements.
2153
2153
/// </summary>
2154
2154
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2155
- private static unsafe Vector256 < float > CreateRemainderMaskSingleVector256 ( int count ) =>
2155
+ private static Vector256 < float > CreateRemainderMaskSingleVector256 ( int count ) =>
2156
2156
Vector256 . LoadUnsafe (
2157
2157
ref Unsafe . As < uint , float > ( ref MemoryMarshal . GetReference ( RemainderUInt32Mask_16x16 ) ) ,
2158
2158
( uint ) ( ( count * 16 ) + 8 ) ) ; // last eight floats in the row
@@ -2163,7 +2163,7 @@ ref Unsafe.As<uint, float>(ref MemoryMarshal.GetReference(RemainderUInt32Mask_16
2163
2163
/// and zero for all other elements.
2164
2164
/// </summary>
2165
2165
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
2166
- private static unsafe Vector512 < float > CreateRemainderMaskSingleVector512 ( int count ) =>
2166
+ private static Vector512 < float > CreateRemainderMaskSingleVector512 ( int count ) =>
2167
2167
Vector512 . LoadUnsafe (
2168
2168
ref Unsafe . As < uint , float > ( ref MemoryMarshal . GetReference ( RemainderUInt32Mask_16x16 ) ) ,
2169
2169
( uint ) ( count * 16 ) ) ; // all sixteen floats in the row
0 commit comments