@@ -321,7 +321,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TOptimizations, TUnique
321
321
// As packing two Vector256<short>s into a Vector256<byte> is cheap compared to the lookup, we can effectively double the throughput.
322
322
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
323
323
// Let the fallback below handle it instead. This is why the condition is
324
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
324
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
325
325
ref short twoVectorsAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - ( 2 * Vector256 < short > . Count ) ) ;
326
326
327
327
do
@@ -374,7 +374,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TOptimizations, TUnique
374
374
// As packing two Vector128<short>s into a Vector128<byte> is cheap compared to the lookup, we can effectively double the throughput.
375
375
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
376
376
// Let the fallback below handle it instead. This is why the condition is
377
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
377
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
378
378
ref short twoVectorsAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - ( 2 * Vector128 < short > . Count ) ) ;
379
379
380
380
do
@@ -453,7 +453,7 @@ public static int LastIndexOfAny<TNegator, TOptimizations, TUniqueLowNibble>(ref
453
453
// As packing two Vector256<short>s into a Vector256<byte> is cheap compared to the lookup, we can effectively double the throughput.
454
454
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
455
455
// Let the fallback below handle it instead. This is why the condition is
456
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
456
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
457
457
ref short twoVectorsAfterStart = ref Unsafe . Add ( ref searchSpace , 2 * Vector256 < short > . Count ) ;
458
458
459
459
do
@@ -504,7 +504,7 @@ public static int LastIndexOfAny<TNegator, TOptimizations, TUniqueLowNibble>(ref
504
504
// As packing two Vector128<short>s into a Vector128<byte> is cheap compared to the lookup, we can effectively double the throughput.
505
505
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
506
506
// Let the fallback below handle it instead. This is why the condition is
507
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
507
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
508
508
ref short twoVectorsAfterStart = ref Unsafe . Add ( ref searchSpace , 2 * Vector128 < short > . Count ) ;
509
509
510
510
do
@@ -604,7 +604,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TUniqueLowNibble, TResu
604
604
// Process the input in chunks of 32 bytes.
605
605
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
606
606
// Let the fallback below handle it instead. This is why the condition is
607
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
607
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
608
608
ref byte vectorAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - Vector256 < byte > . Count ) ;
609
609
610
610
do
@@ -653,7 +653,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TUniqueLowNibble, TResu
653
653
// Process the input in chunks of 16 bytes.
654
654
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
655
655
// Let the fallback below handle it instead. This is why the condition is
656
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
656
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
657
657
ref byte vectorAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - Vector128 < byte > . Count ) ;
658
658
659
659
do
@@ -729,7 +729,7 @@ public static int LastIndexOfAny<TNegator, TUniqueLowNibble>(ref byte searchSpac
729
729
// Process the input in chunks of 32 bytes.
730
730
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
731
731
// Let the fallback below handle it instead. This is why the condition is
732
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
732
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
733
733
ref byte vectorAfterStart = ref Unsafe . Add ( ref searchSpace , Vector256 < byte > . Count ) ;
734
734
735
735
do
@@ -778,7 +778,7 @@ public static int LastIndexOfAny<TNegator, TUniqueLowNibble>(ref byte searchSpac
778
778
// Process the input in chunks of 16 bytes.
779
779
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
780
780
// Let the fallback below handle it instead. This is why the condition is
781
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
781
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
782
782
ref byte vectorAfterStart = ref Unsafe . Add ( ref searchSpace , Vector128 < byte > . Count ) ;
783
783
784
784
do
@@ -876,7 +876,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TResultMapper>(ref byte
876
876
// Process the input in chunks of 32 bytes.
877
877
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
878
878
// Let the fallback below handle it instead. This is why the condition is
879
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
879
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
880
880
ref byte vectorAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - Vector256 < byte > . Count ) ;
881
881
882
882
do
@@ -928,7 +928,7 @@ private static TResult IndexOfAnyCore<TResult, TNegator, TResultMapper>(ref byte
928
928
// Process the input in chunks of 16 bytes.
929
929
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
930
930
// Let the fallback below handle it instead. This is why the condition is
931
- // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "!IsAddressGreaterThan ".
931
+ // ">" instead of ">=" above, and why "IsAddressLessThan" is used instead of "IsAddressLessThanOrEqualTo ".
932
932
ref byte vectorAwayFromEnd = ref Unsafe . Add ( ref searchSpace , searchSpaceLength - Vector128 < byte > . Count ) ;
933
933
934
934
do
@@ -1004,7 +1004,7 @@ public static int LastIndexOfAny<TNegator>(ref byte searchSpace, int searchSpace
1004
1004
// Process the input in chunks of 32 bytes.
1005
1005
// If the input length is a multiple of 32, don't consume the last 32 characters in this loop.
1006
1006
// Let the fallback below handle it instead. This is why the condition is
1007
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
1007
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
1008
1008
ref byte vectorAfterStart = ref Unsafe . Add ( ref searchSpace , Vector256 < byte > . Count ) ;
1009
1009
1010
1010
do
@@ -1056,7 +1056,7 @@ public static int LastIndexOfAny<TNegator>(ref byte searchSpace, int searchSpace
1056
1056
// Process the input in chunks of 16 bytes.
1057
1057
// If the input length is a multiple of 16, don't consume the last 16 characters in this loop.
1058
1058
// Let the fallback below handle it instead. This is why the condition is
1059
- // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "!IsAddressLessThan ".
1059
+ // ">" instead of ">=" above, and why "IsAddressGreaterThan" is used instead of "IsAddressGreaterThanOrEqualTo ".
1060
1060
ref byte vectorAfterStart = ref Unsafe . Add ( ref searchSpace , Vector128 < byte > . Count ) ;
1061
1061
1062
1062
do
0 commit comments