r186456 - in /trunk/libstdc++-v3: ChangeLog inc...
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Sat Apr 14 22:33:00 GMT 2012
Author: paolo
Date: Sat Apr 14 22:33:22 2012
New Revision: 186456
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186456
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:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/random.tcc
trunk/libstdc++-v3/include/bits/stl_algobase.h
More information about the Libstdc++-cvs
mailing list