Skip to content

Commit

Permalink
Use memset, to avoid emmintrin.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Dec 29, 2023
1 parent b408368 commit 3f6a86e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def compiler_supports_aesni():
}
int main(void) {
int ret;
__m128i x = _mm_setzero_si128();
__m128i x;
memset(&x, 0, sizeof(x));
x = f(x, x);
memcpy(&ret, &x, sizeof(ret));
return ret;
Expand Down

0 comments on commit 3f6a86e

Please sign in to comment.