/* Copyright (C) 2003-2013 Free Software Foundation, Inc. This file is part of GCC. 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 3, or (at your option) any later version. 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. Under Section 7 of GPL version 3, you are granted additional permissions described in the GCC Runtime Library Exception, version 3.1, as published by the Free Software Foundation. You should have received a copy of the GNU General Public License and a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ /* Implemented from the specification included in the Intel C++ Compiler User Guide and Reference, version 9.0. */ #ifndef _PMMINTRIN_H_INCLUDED #define _PMMINTRIN_H_INCLUDED #ifndef __SSE3__ # error "SSE3 instruction set not enabled" #else /* We need definitions from the SSE2 and SSE header files*/ #include <emmintrin.h> /* Additional bits in the MXCSR. */ #define _MM_DENORMALS_ZERO_MASK 0x0040 #define _MM_DENORMALS_ZERO_ON 0x0040 #define _MM_DENORMALS_ZERO_OFF 0x0000 #define _MM_SET_DENORMALS_ZERO_MODE(mode) \ _mm_setcsr ((_mm_getcsr () & ~_MM_DENORMALS_ZERO_MASK) | (mode)) #define _MM_GET_DENORMALS_ZERO_MODE() \ (_mm_getcsr() & _MM_DENORMALS_ZERO_MASK) extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_addsub_ps (__m128 __X, __m128 __Y) { return (__m128) __builtin_ia32_addsubps ((__v4sf)__X, (__v4sf)__Y); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_hadd_ps (__m128 __X, __m128 __Y) { return (__m128) __builtin_ia32_haddps ((__v4sf)__X, (__v4sf)__Y); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_hsub_ps (__m128 __X, __m128 __Y) { return (__m128) __builtin_ia32_hsubps ((__v4sf)__X, (__v4sf)__Y); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movehdup_ps (__m128 __X) { return (__m128) __builtin_ia32_movshdup ((__v4sf)__X); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_moveldup_ps (__m128 __X) { return (__m128) __builtin_ia32_movsldup ((__v4sf)__X); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_addsub_pd (__m128d __X, __m128d __Y) { return (__m128d) __builtin_ia32_addsubpd ((__v2df)__X, (__v2df)__Y); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_hadd_pd (__m128d __X, __m128d __Y) { return (__m128d) __builtin_ia32_haddpd ((__v2df)__X, (__v2df)__Y); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_hsub_pd (__m128d __X, __m128d __Y) { return (__m128d) __builtin_ia32_hsubpd ((__v2df)__X, (__v2df)__Y); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loaddup_pd (double const *__P) { return _mm_load1_pd (__P); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movedup_pd (__m128d __X) { return _mm_shuffle_pd (__X, __X, _MM_SHUFFLE2 (0,0)); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_lddqu_si128 (__m128i const *__P) { return (__m128i) __builtin_ia32_lddqu ((char const *)__P); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_monitor (void const * __P, unsigned int __E, unsigned int __H) { __builtin_ia32_monitor (__P, __E, __H); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mwait (unsigned int __E, unsigned int __H) { __builtin_ia32_mwait (__E, __H); } #endif /* __SSE3__ */ #endif /* _PMMINTRIN_H_INCLUDED */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
adxintrin.h | File | 1.76 KB | 0644 |
|
ammintrin.h | File | 3.01 KB | 0644 |
|
avx2intrin.h | File | 56.15 KB | 0644 |
|
avxintrin.h | File | 46.88 KB | 0644 |
|
bmi2intrin.h | File | 3.17 KB | 0644 |
|
bmiintrin.h | File | 5.32 KB | 0644 |
|
bmmintrin.h | File | 1.13 KB | 0644 |
|
cpuid.h | File | 8 KB | 0644 |
|
cross-stdarg.h | File | 2.5 KB | 0644 |
|
emmintrin.h | File | 49.56 KB | 0644 |
|
f16cintrin.h | File | 3.2 KB | 0644 |
|
float.h | File | 8.67 KB | 0644 |
|
fma4intrin.h | File | 8.78 KB | 0644 |
|
fmaintrin.h | File | 10.15 KB | 0644 |
|
fxsrintrin.h | File | 1.87 KB | 0644 |
|
ia32intrin.h | File | 6.2 KB | 0644 |
|
immintrin.h | File | 3.85 KB | 0644 |
|
iso646.h | File | 1.24 KB | 0644 |
|
limits.h | File | 5.26 KB | 0644 |
|
lwpintrin.h | File | 3.14 KB | 0644 |
|
lzcntintrin.h | File | 2.15 KB | 0644 |
|
mm3dnow.h | File | 6.32 KB | 0644 |
|
mm_malloc.h | File | 1.71 KB | 0644 |
|
mmintrin.h | File | 29.87 KB | 0644 |
|
nmmintrin.h | File | 1.35 KB | 0644 |
|
omp.h | File | 3.56 KB | 0644 |
|
pkuintrin.h | File | 1.49 KB | 0644 |
|
pmmintrin.h | File | 4.14 KB | 0644 |
|
popcntintrin.h | File | 1.57 KB | 0644 |
|
prfchwintrin.h | File | 1.54 KB | 0644 |
|
rdseedintrin.h | File | 1.82 KB | 0644 |
|
rtmintrin.h | File | 2.54 KB | 0644 |
|
smmintrin.h | File | 27.05 KB | 0644 |
|
stdalign.h | File | 1.18 KB | 0644 |
|
stdarg.h | File | 3.98 KB | 0644 |
|
stdbool.h | File | 1.4 KB | 0644 |
|
stddef.h | File | 13.3 KB | 0644 |
|
stdfix.h | File | 5.86 KB | 0644 |
|
stdint-gcc.h | File | 6.86 KB | 0644 |
|
stdint.h | File | 328 B | 0644 |
|
stdnoreturn.h | File | 1.11 KB | 0644 |
|
syslimits.h | File | 330 B | 0644 |
|
tbmintrin.h | File | 5.06 KB | 0644 |
|
tmmintrin.h | File | 8.02 KB | 0644 |
|
unwind.h | File | 10.48 KB | 0644 |
|
varargs.h | File | 139 B | 0644 |
|
wmmintrin.h | File | 4.26 KB | 0644 |
|
x86intrin.h | File | 2.32 KB | 0644 |
|
xmmintrin.h | File | 40.7 KB | 0644 |
|
xopintrin.h | File | 27.77 KB | 0644 |
|
xsaveintrin.h | File | 1.94 KB | 0644 |
|
xsaveoptintrin.h | File | 1.63 KB | 0644 |
|
xtestintrin.h | File | 1.52 KB | 0644 |
|