r229886 - Make the _mm256_insert_epi64 definition more consistent

Filipe Cabecinhas me at filcab.net
Thu Feb 19 11:00:33 PST 2015

Author: filcab
Date: Thu Feb 19 13:00:33 2015
New Revision: 229886

URL: http://llvm.org/viewvc/llvm-project?rev=229886&view=rev
Make the _mm256_insert_epi64 definition more consistent

Use long long for the epi64 argument, like the other intrinsics.
NFC since this is only defined in 64-bit mode, not in 32-bit.

Fix suggested by H. J. Lu!


Modified: cfe/trunk/lib/Headers/avxintrin.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/avxintrin.h?rev=229886&r1=229885&r2=229886&view=diff
--- cfe/trunk/lib/Headers/avxintrin.h (original)
+++ cfe/trunk/lib/Headers/avxintrin.h Thu Feb 19 13:00:33 2015
@@ -514,7 +514,7 @@ _mm256_insert_epi8(__m256i __a, int __b,
 #ifdef __x86_64__
 static __inline __m256i __attribute__((__always_inline__, __nodebug__))
-_mm256_insert_epi64(__m256i __a, long __b, int const __imm)
+_mm256_insert_epi64(__m256i __a, long long __b, int const __imm)
   __v4di __c = (__v4di)__a;
   __c[__imm & 3] = __b;

More information about the cfe-commits mailing list