File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed
src/libraries/System.Private.CoreLib/src/System Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -694,8 +694,7 @@ private string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] stri
694
694
695
695
static bool ISimdVector < Vector128 < T > , T > . AnyMatches ( Vector128 < T > vector )
696
696
{
697
- uint mask = vector . ExtractMostSignificantBits ( ) ;
698
- return ( mask != 0 ) ;
697
+ return ( vector != Vector128 < T > . Zero ) ;
699
698
}
700
699
701
700
static int ISimdVector < Vector128 < T > , T > . IndexOfLastMatch ( Vector128 < T > vector )
Original file line number Diff line number Diff line change @@ -684,8 +684,7 @@ private string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] stri
684
684
685
685
static bool ISimdVector < Vector256 < T > , T > . AnyMatches ( Vector256 < T > vector )
686
686
{
687
- uint mask = vector . ExtractMostSignificantBits ( ) ;
688
- return ( mask != 0 ) ;
687
+ return ( vector != Vector256 < T > . Zero ) ;
689
688
}
690
689
691
690
static int ISimdVector < Vector256 < T > , T > . IndexOfLastMatch ( Vector256 < T > vector )
Original file line number Diff line number Diff line change @@ -684,8 +684,7 @@ private string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] stri
684
684
685
685
static bool ISimdVector < Vector512 < T > , T > . AnyMatches ( Vector512 < T > vector )
686
686
{
687
- ulong mask = vector . ExtractMostSignificantBits ( ) ;
688
- return ( mask != 0 ) ;
687
+ return ( vector != Vector512 < T > . Zero ) ;
689
688
}
690
689
691
690
static int ISimdVector < Vector512 < T > , T > . IndexOfLastMatch ( Vector512 < T > vector )
Original file line number Diff line number Diff line change @@ -759,8 +759,7 @@ private string ToString([StringSyntax(StringSyntaxAttribute.NumericFormat)] stri
759
759
760
760
static bool ISimdVector < Vector64 < T > , T > . AnyMatches ( Vector64 < T > vector )
761
761
{
762
- uint mask = vector . ExtractMostSignificantBits ( ) ;
763
- return ( mask != 0 ) ;
762
+ return ( vector != Vector64 < T > . Zero ) ;
764
763
}
765
764
766
765
static int ISimdVector < Vector64 < T > , T > . IndexOfLastMatch ( Vector64 < T > vector )
Original file line number Diff line number Diff line change @@ -2204,7 +2204,7 @@ private static unsafe bool HasMatch<TVectorByte>(TVectorByte vector)
2204
2204
{
2205
2205
return VectorContainsNonAsciiChar( ( Vector128 < byte > ) ( object ) vector) ;
2206
2206
}
2207
- return TVectorByte . AnyMatches ( vector ) ;
2207
+ return ( ( vector & TVectorByte . Create ( ( byte ) 0b1000_0000 ) ) != TVectorByte . Zero ) ;
2208
2208
}
2209
2209
2210
2210
You can’t perform that action at this time.
0 commit comments