2006-07-14 Paolo Carlini <pcarlini@suse.de>
commitf24ac6f615cd843f6d876d817b4e930fef88e4c7
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jul 2006 12:55:15 +0000 (14 12:55 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Jul 2006 12:55:15 +0000 (14 12:55 +0000)
tree3320efe58f14bef26eb98c53b44808c3a493fd22
parent32955d674a1242bd4a3faec70dc74d4f12ab14b6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115439 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/random
libstdc++-v3/include/tr1/random.tcc