Swap for vector loop unroll detection
This commit is contained in:
parent
9eb01d1c57
commit
972d978d11
|
|
@ -775,8 +775,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
|
||||||
internal static int LocateFirstFoundByte(ref Vector<byte> byteEquals)
|
internal static int LocateFirstFoundByte(ref Vector<byte> byteEquals)
|
||||||
{
|
{
|
||||||
var vector64 = Vector.AsVectorInt64(byteEquals);
|
var vector64 = Vector.AsVectorInt64(byteEquals);
|
||||||
var i = 0;
|
|
||||||
long longValue = 0;
|
long longValue = 0;
|
||||||
|
var i = 0;
|
||||||
for (; i < Vector<long>.Count; i++)
|
for (; i < Vector<long>.Count; i++)
|
||||||
{
|
{
|
||||||
longValue = vector64[i];
|
longValue = vector64[i];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue