Skip to content

Commit

Permalink
Tighten loop
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Apr 7, 2024
1 parent b9475e8 commit ac6d867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/rdpCapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,11 @@ wyhash_rfx_tile(const uint8_t *src, int src_stride, int x, int y, uint64_t seed)
uint64_t hash;
const uint8_t *s8;
hash = seed;
s8 = src + (y * src_stride) + (x * 4);
for(row = 0; row < 64; row++)
{
s8 = src + (y+row) * src_stride + x * 4;
hash = wyhash((const void*)s8, 64 * 4, hash, _wyp);
s8 += src_stride;
}
return hash;
}
Expand Down

0 comments on commit ac6d867

Please sign in to comment.