Replacing the _mm_set1_epi64x Function
This function is used to copy a 64-bit integer to a 128-bit vector a.
For details about _mm_set1_epi64x, see Intrinsics Guide.
- Code on x86:
__m128i a = _mm_set1_epi64x(0x86b0426193d86e66ull) ;
- Alternative for Kunpeng processors:
#include <arm_neon.h> int64x2_t a = vdupq_n_s64(0x86b0426193d86e66ull);
Parent topic: Source Code Modification Cases