Replacing the _mm_add_epi64 Function
This function is used to add two 64-bit integers in vectors a and b, and save and output the results.
For details about _mm_add_epi64, see Intrinsics Guide.
- Code on x86:
__m128i _mm_add_epi64(__m128i a, __m128i b)
- Alternative for Kunpeng processors:
#include <arm_neon.h> Int64x2_t vaddq_s64(Int64x2_t a, Int64x2_t b);
Parent topic: Source Code Modification Cases