Skip to content

Commit d97a099

Browse files
committed
Deal with strict aliasing when extracting SSE2 values
1 parent f25c0e5 commit d97a099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AESNI.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static uint32_t sub_rot(uint32_t w, unsigned idx /** round/Nk **/, enum SubType
8686
if (subType == SubRotXor) {
8787
z = _mm_srli_si128(y, 4);
8888
}
89-
_mm_store_ss((float*)&result, _mm_castsi128_ps(z));
89+
result = _mm_cvtsi128_si32(z);
9090
return result;
9191
}
9292

0 commit comments

Comments
 (0)