h2o / picotls

TLS 1.3 implementation in C (master supports RFC8446 as well as draft-26, -27, -28)
527 stars 140 forks source link

maybe `_mm_insert_epi64` is unavailable on i386? #493

Closed kazuho closed 9 months ago

kazuho commented 9 months ago

Error message of https://github.com/h2o/h2o/issues/3289 indicates that some i386 environments might have access to AVX2 but not to _mm_insert_epi64 because the latter takes a 64-bit int as an argument.

This PR adds the invocation of _mm_insert_epi64 to the test code used for checking if fusion can be used, so that fusion would be disabled on environments that lack support for the intrinsic.