Skip to content

Commit f5ed30a

Browse files
committed
clean up blank lines
1 parent 202a996 commit f5ed30a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/UTF8.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -398,19 +398,6 @@ public unsafe static (int utfadjust, int scalaradjust) calculateErrorPathadjust(
398398

399399
int TailScalarCodeUnitCountAdjustment = 0;
400400
int TailUtf16CodeUnitCountAdjustment = 0;
401-
bool lastSIMDisIncomplete = false;
402-
// This is to solve a specific problem, where we have an unterminated SIMD vector followed by a call to the scaral rewind function:
403-
// as an example say I have this sequence of byte where every line represents 16 bytes:
404-
// 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
405-
// 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 11101100 10001001 10011000 11001011 <=== This SIMD vector is unterminated,thus it has to backup
406-
// 10100100 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
407-
// 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
408-
// By default , if there is an unterminated SIMD vector, it assumes that the next vector is SIMD,
409-
// dont count the backed up bytes(in this case the "11101100 10001001 10011000")
410-
// however in case there isnt enough bytes to fill in, a gap is created as (??????)
411-
// A call to the adjustment vector has to be made and this is the value that holds whether this call is made or not.
412-
// It is somewhat questionable to create one extra variable just for that but I felt that I needed to separate what worked and what was tacked on later as clearly as possible
413-
414401

415402
if (pInputBuffer == null || inputLength <= 0)
416403
{
@@ -432,7 +419,6 @@ public unsafe static (int utfadjust, int scalaradjust) calculateErrorPathadjust(
432419
break;
433420
}
434421
}
435-
// Console.WriteLine("asciirun bytes: ", asciirun); // debugging
436422
processedLength = asciirun;
437423

438424
if (processedLength + 32 < inputLength)

0 commit comments

Comments
 (0)