This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r186461 - in /branches/gcc-4_7-branch/libstdc++...
- From: paolo at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Sun, 15 Apr 2012 02:14:40 -0000
- Subject: r186461 - in /branches/gcc-4_7-branch/libstdc++...
Author: paolo
Date: Sun Apr 15 02:14:39 2012
New Revision: 186461
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186461
Log:
2012-04-14 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/52699
* include/bits/random.tcc (independent_bits_engine<>::operator()())
Avoid various overflows; use common_type on result_type and
_RandomNumberEngine::result_type; avoid floating point computations;
other smaller tweaks.
* include/bits/random.tcc (uniform_int_distribution<>::operator())
Use common_type; assume _UniformRandomNumberGenerator::result_type
unsigned; tidy.
* include/bits/stl_algobase.h (__lg(unsigned), __lg(unsigned long),
__lg(unsigned long long)): Add.
Modified:
branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
branches/gcc-4_7-branch/libstdc++-v3/include/bits/random.tcc
branches/gcc-4_7-branch/libstdc++-v3/include/bits/stl_algobase.h