Swap for vector loop unroll detection

This commit is contained in:
Ben Adams 2016-10-15 18:53:57 +01:00
parent 9eb01d1c57
commit 972d978d11
1 changed files with 1 additions and 1 deletions

View File

@ -775,8 +775,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
internal static int LocateFirstFoundByte(ref Vector<byte> byteEquals)
{
var vector64 = Vector.AsVectorInt64(byteEquals);
var i = 0;
long longValue = 0;
var i = 0;
for (; i < Vector<long>.Count; i++)
{
longValue = vector64[i];