Skip to content

Commit

Permalink
remove unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdaankhalidmsft committed Jan 10, 2025
1 parent 63433fa commit eb77411
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/server/Resp/Bitmap/BitmapManagerBitPos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license.

using System.Diagnostics;
using System.Numerics;
using System.Runtime.Intrinsics.X86;

namespace Garnet.server
Expand Down Expand Up @@ -178,7 +177,7 @@ private static long BitPosByte(byte* value, byte bSetVal, long startOffset, long
if (payload == mask)
return pos + 0;

pos += (long)BitOperations.LeadingZeroCount((ulong)payload);
pos += (long)Lzcnt.X64.LeadingZeroCount((ulong)payload);

return pos;
}
Expand Down

0 comments on commit eb77411

Please sign in to comment.