Commit 141aa58b by Nathan Froyd

opt_random.h: Include pmmintrin.h instead of x86intrin.h, and only do so when __SSE3__

	* config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
	of x86intrin.h, and only do so when __SSE3__
	* include/ext/random: Include emmintrin.h instead of x86intrin.h

From-SVN: r228786
parent d9a6bd32
2015-10-13 Nathan Froyd <froydnj@gcc.gnu.org>
* config/cpu/i486/opt/bits/opt_random.h: Include pmmintrin.h instead
of x86intrin.h, and only do so when __SSE3__
* include/ext/random: Include emmintrin.h instead of x86intrin.h
2015-10-11 Joseph Myers <joseph@codesourcery.com> 2015-10-11 Joseph Myers <joseph@codesourcery.com>
* crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* | * crossconfig.m4 (GLIBCXX_CROSSCONFIG) <*-linux* | *-uclinux* |
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#ifndef _BITS_OPT_RANDOM_H #ifndef _BITS_OPT_RANDOM_H
#define _BITS_OPT_RANDOM_H 1 #define _BITS_OPT_RANDOM_H 1
#include <x86intrin.h> #ifdef __SSE3__
#include <pmmintrin.h>
#endif
#pragma GCC system_header #pragma GCC system_header
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <array> #include <array>
#include <ext/cmath> #include <ext/cmath>
#ifdef __SSE2__ #ifdef __SSE2__
# include <x86intrin.h> # include <emmintrin.h>
#endif #endif
#if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C) #if defined(_GLIBCXX_USE_C99_STDINT_TR1) && defined(UINT32_C)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment