Skip to content

Commit f9439a8

Browse files
authored
[no-ci] Update Base64.cs
1 parent d20df3c commit f9439a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Base64.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ public unsafe static OperationStatus DecodeFromBase64(ReadOnlySpan<char> source,
5555
{
5656
return Arm.Base64.DecodeFromBase64ARM(source, dest, out bytesConsumed, out bytesWritten, isUrl);
5757
}
58-
// To be comleted
58+
// To be comleted, this may have to wait for .NET 10.
5959
//if (Vector512.IsHardwareAccelerated && Avx512Vbmi.IsSupported)
6060
//{
6161
// return GetPointerToFirstInvalidByteAvx512(pInputBuffer, inputLength, out Utf16CodeUnitCountAdjustment, out ScalarCodeUnitCountAdjustment);
6262
//}
63-
//if (Avx2.IsSupported)
64-
//{
65-
// return GetPointerToFirstInvalidByteAvx2(pInputBuffer, inputLength, out Utf16CodeUnitCountAdjustment, out ScalarCodeUnitCountAdjustment);
66-
//}
63+
if (Avx2.IsSupported)
64+
{
65+
return GetPointerToFirstInvalidByteAvx2(pInputBuffer, inputLength, out Utf16CodeUnitCountAdjustment, out ScalarCodeUnitCountAdjustment);
66+
}
6767
if (Ssse3.IsSupported && Popcnt.IsSupported)
6868
{
6969
return SSE.Base64.DecodeFromBase64SSE(source, dest, out bytesConsumed, out bytesWritten, isUrl);
@@ -73,4 +73,4 @@ public unsafe static OperationStatus DecodeFromBase64(ReadOnlySpan<char> source,
7373

7474
}
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)