r246542 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Tue Mar 28 16:09:00 GMT 2017
Author: redi
Date: Tue Mar 28 16:09:49 2017
New Revision: 246542
URL: https://gcc.gnu.org/viewcvs?rev=246542&root=gcc&view=rev
Log:
PR libstdc++/80137 use std::nextafter instead of looping
PR libstdc++/80137
* include/bits/random.tcc (generate_canonical): Use std::nextafter
or numeric_limits::epsilon() to reduce out-of-range values.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
64351.cc: Verify complexity requirement is met.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/random.tcc
trunk/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/64351.cc
More information about the Gcc-cvs
mailing list