File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Ramstack.Globbing/Internal Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1717 - name : Setup .NET
1818 uses : actions/setup-dotnet@v4
1919 with :
20- dotnet-version : 9.0.x
20+ dotnet-version : |
21+ 6.x
22+ 7.x
23+ 8.x
24+ 9.x
2125
2226 - name : Checkout
2327 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ public PathSegmentIterator(int length) =>
309309
310310 while ( _position < _length )
311311 {
312- if ( _mask != 0 )
312+ if ( Avx2 . IsSupported && _mask != 0 )
313313 {
314314 var offset = BitOperations . TrailingZeroCount ( _mask ) ;
315315 _last = _position + ( nint ) ( ( uint ) offset >> 1 ) ;
@@ -321,7 +321,7 @@ public PathSegmentIterator(int length) =>
321321 return ( ( int ) start , ( int ) _last ) ;
322322 }
323323
324- if ( _position + Vector256 < ushort > . Count <= _length )
324+ if ( Avx2 . IsSupported && _position + Vector256 < ushort > . Count <= _length )
325325 {
326326 var chunk = LoadVector256 ( ref source , _position ) ;
327327 var allowEscapingMask = CreateAllowEscaping256Bitmask ( flags ) ;
You can’t perform that action at this time.
0 commit comments