r246549 - in /branches/gcc-6-branch/libstdc++-v...
redi@gcc.gnu.org
redi@gcc.gnu.org
Tue Mar 28 17:18:00 GMT 2017
Author: redi
Date: Tue Mar 28 17:18:42 2017
New Revision: 246549
URL: https://gcc.gnu.org/viewcvs?rev=246549&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:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/bits/random.tcc
branches/gcc-6-branch/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/64351.cc
More information about the Gcc-cvs
mailing list