This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r170951 - in /branches/gcc-4_6-branch/libstdc++...
- From: paolo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 18:17:52 -0000
- Subject: r170951 - in /branches/gcc-4_6-branch/libstdc++...
Author: paolo
Date: Mon Mar 14 18:17:51 2011
New Revision: 170951
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170951
Log:
2011-03-14 Andrey Zholos <aaz@althenia.net>
PR libstdc++/48114
* include/bits/random.h (geometric_distribution): Correct formula
in comment, per C++0x.
(geometric_distribution<>::param_type::param_type(double)): Fix check.
(geometric_distribution<>::param_type::_M_initialize):
Store log(1 - p).
* include/bits/random.tcc (geometric_distribution<>::operator()):
Fix computation.
(binomial_distribution<>::operator()): Likewise.
Modified:
branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
branches/gcc-4_6-branch/libstdc++-v3/include/bits/random.h
branches/gcc-4_6-branch/libstdc++-v3/include/bits/random.tcc