diff options
Diffstat (limited to 'contrib/gcc/config/i386/emmintrin.h')
-rw-r--r-- | contrib/gcc/config/i386/emmintrin.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/contrib/gcc/config/i386/emmintrin.h b/contrib/gcc/config/i386/emmintrin.h index 7007fc5864a2..abe450a8f334 100644 --- a/contrib/gcc/config/i386/emmintrin.h +++ b/contrib/gcc/config/i386/emmintrin.h @@ -1,19 +1,19 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. - This file is part of GNU CC. + This file is part of GCC. - GNU CC is free software; you can redistribute it and/or modify + GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - GNU CC is distributed in the hope that it will be useful, + GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with GNU CC; see the file COPYING. If not, write to + along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -115,15 +115,7 @@ _mm_set_pd1 (double __F) static __inline __m128d _mm_set_pd (double __Z, double __Y) { - union { - double __a[2]; - __m128d __v; - } __u; - - __u.__a[0] = __Y; - __u.__a[1] = __Z; - - return __u.__v; + return (__v2df) {__Y, __Z}; } /* Create the vector [Y Z]. */ @@ -147,7 +139,7 @@ _mm_store_sd (double *__P, __m128d __A) __builtin_ia32_storesd (__P, (__v2df)__A); } -/* Store the lower DPFP value acrosd two words. */ +/* Store the lower DPFP value across two words. */ static __inline void _mm_store1_pd (double *__P, __m128d __A) { |