Skip to content

Commit

Permalink
Fix mask loading websocket unmasking function (SSE3 path)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed May 9, 2024
1 parent c26a6ba commit 0289a1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/lwan-websocket.c
Expand Up @@ -222,7 +222,8 @@ static void unmask(char *msg, size_t msg_len, char mask[static 4])
}
#elif defined(__SSE3__)
if (msg_len >= 16) {
const __m128i mask128 = _mm_lddqu_si128((const float *)mask);
const __m128i mask128 =
_mm_castps_si128(_mm_load_ps1((const float *)mask));

do {
const __m128i v = _mm_lddqu_si128((const __m128i *)msg);
Expand Down

0 comments on commit 0289a1f

Please sign in to comment.