[cfe-commits] r64291 - /cfe/trunk/lib/Headers/pmmintrin.h

Anders Carlsson andersca at mac.com
Fri Feb 13 15:51:16 PST 2009


 
On Friday, February 13, 2009, at 03:48PM, "Eli Friedman" <eli.friedman at gmail.com> wrote:
>On Tue, Feb 10, 2009 at 10:39 PM, Anders Carlsson <andersca at mac.com> wrote:
>> +static inline __m128d __attribute__((__always_inline__)) _mm_loaddup_pd(double const *dp)
>> +{
>> +  return __builtin_shufflevector(*(__m128d *)dp, *(__m128d *)dp, 0, 0);
>> +}
>
>This is wrong and dangerous; dp is an 64-bit value, not a 128-bit value.
>
>-Eli

OK - could you file a bug so we don't forget.

Anders




More information about the cfe-commits mailing list