Skip to content

Commit bf3e521

Browse files
committed
cleanup
1 parent a9b933d commit bf3e521

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

benchmark/Benchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,14 +632,14 @@ public unsafe void SSEDecodingRealDataWithAllocUTF16()
632632
}
633633

634634
[Benchmark]
635-
[BenchmarkCategory("AVX2")]
635+
[BenchmarkCategory("AVX")]
636636
public unsafe void AVX2DecodingRealDataUTF16()
637637
{
638638
RunAVX2DecodingBenchmarkUTF16(FileContent, DecodedLengths);
639639
}
640640

641641
[Benchmark]
642-
[BenchmarkCategory("AVX2")]
642+
[BenchmarkCategory("AVX")]
643643
public unsafe void AVX2DecodingRealDataWithAllocUTF16()
644644
{
645645
RunAVX2DecodingBenchmarkWithAllocUTF16(FileContent, DecodedLengths);

src/Base64AVX2UTF8.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -616,20 +616,12 @@ private unsafe static OperationStatus InnerDecodeFromBase64AVX2Regular(ReadOnlyS
616616
bytesConsumed = (int)(src - srcInit);
617617
bytesWritten = (int)(dst - dstInit);
618618

619-
// bytesConsumed = Math.Max(0,(int)(src - srcInit) - (int)bufferBytesConsumed);
620-
// bytesWritten = Math.Max(0,(int)(dst - dstInit) - (int)bufferBytesWritten);
621-
622-
623-
624619
int remainderBytesConsumed = 0;
625620
int remainderBytesWritten = 0;
626621

627622
OperationStatus result =
628623
SimdBase64.Scalar.Base64.Base64WithWhiteSpaceToBinaryScalar(source.Slice(bytesConsumed), dest.Slice(bytesWritten), out remainderBytesConsumed, out remainderBytesWritten, isUrl);
629624

630-
631-
632-
633625
if (result == OperationStatus.InvalidData)
634626
{
635627
bytesConsumed += remainderBytesConsumed;
@@ -956,13 +948,9 @@ private unsafe static OperationStatus InnerDecodeFromBase64AVX2Url(ReadOnlySpan<
956948

957949
if (src < srcEnd + equalsigns) // We finished processing 64-bit blocks, we're not quite at the end yet
958950
{
959-
960-
961951
bytesConsumed = (int)(src - srcInit);
962952
bytesWritten = (int)(dst - dstInit);
963953

964-
965-
966954
int remainderBytesConsumed = 0;
967955
int remainderBytesWritten = 0;
968956

0 commit comments

Comments
 (0)