summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/ext
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-18 14:02:20 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-18 14:02:20 +0000
commitea08aea4e87bc29256c1a7738c889ae59b9a4db9 (patch)
treeaf1cccb697d753bdc1ea93c92358e957af1cf65a /libstdc++-v3/include/ext
parentd1938a4baad9aec248c07c94cbd6ba8ed66ed4e9 (diff)
downloadppe42-gcc-ea08aea4e87bc29256c1a7738c889ae59b9a4db9.tar.gz
ppe42-gcc-ea08aea4e87bc29256c1a7738c889ae59b9a4db9.zip
2012-09-18 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/54612 * include/ext/random.tcc (operator== (const __gnu_cxx::simd_fast_mersenne_twister_engine<>&, const __gnu_cxx::simd_fast_mersenne_twister_engine<>&)): Fix state_size use. * config/cpu/i486/opt/ext/opt_random.h: Guard with __SSE2__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191424 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r--libstdc++-v3/include/ext/random.tcc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/random.tcc b/libstdc++-v3/include/ext/random.tcc
index eca8772f767..07001379415 100644
--- a/libstdc++-v3/include/ext/random.tcc
+++ b/libstdc++-v3/include/ext/random.tcc
@@ -328,7 +328,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
__msk1, __msk2, __msk3, __msk4,
__parity1, __parity2, __parity3, __parity4>& __rhs)
{
- return (std::equal(__lhs._M_stateT, __lhs._M_stateT + state_size,
+ typedef __gnu_cxx::simd_fast_mersenne_twister_engine<_UIntType,
+ __m, __pos1, __sl1, __sl2, __sr1, __sr2,
+ __msk1, __msk2, __msk3, __msk4,
+ __parity1, __parity2, __parity3, __parity4> __engine;
+ return (std::equal(__lhs._M_stateT,
+ __lhs._M_stateT + __engine::state_size,
__rhs._M_stateT)
&& __lhs._M_pos == __rhs._M_pos);
}
OpenPOWER on IntegriCloud