diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-07-14 12:55:15 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-07-14 12:55:15 +0000 |
commit | 8c2e5f361c5e3b72fb8ad110d79e4f88e49eb449 (patch) | |
tree | 3320efe58f14bef26eb98c53b44808c3a493fd22 /libstdc++-v3/include/tr1/random | |
parent | 4f543d151efddbd4c7944c9f87cad8b3321f6dc6 (diff) | |
download | gcc-8c2e5f361c5e3b72fb8ad110d79e4f88e49eb449.zip gcc-8c2e5f361c5e3b72fb8ad110d79e4f88e49eb449.tar.gz gcc-8c2e5f361c5e3b72fb8ad110d79e4f88e49eb449.tar.bz2 |
random.tcc (struct _To_Unsigned_Type): Add.
2006-07-14 Paolo Carlini <pcarlini@suse.de>
* include/tr1/random.tcc (struct _To_Unsigned_Type): Add.
(subtract_with_carry<>::seed(_Gen&, false_type)): Use an
unsigned type in the loop, fix factor multiplier, take g
invocations modulo 2^32.
* include/tr1/random.tcc (subtract_with_carry<>::
seed(unsigned long)): Fix value == 0 special case.
* include/tr1/random (struct _Shift): Fix for large shifts.
From-SVN: r115439
Diffstat (limited to 'libstdc++-v3/include/tr1/random')
-rw-r--r-- | libstdc++-v3/include/tr1/random | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1/random b/libstdc++-v3/include/tr1/random index f90c8d1..5810986 100644 --- a/libstdc++-v3/include/tr1/random +++ b/libstdc++-v3/include/tr1/random @@ -125,7 +125,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) } template<typename _UIntType, int __w, bool = - __w != std::numeric_limits<_UIntType>::digits> + __w < std::numeric_limits<_UIntType>::digits> struct _Shift { static const _UIntType __value = 0; }; |