[llvm-bugs] [Bug 39344] uniform_real_distribution can't generate the full range of finite floating point numbers
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 18 10:52:18 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39344
Tim Northover <t.p.northover at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |t.p.northover at gmail.com
Status|NEW |RESOLVED
--- Comment #1 from Tim Northover <t.p.northover at gmail.com> ---
The C++ standard requires the range to be smaller than the largest
representable value so that low & high pair is invalid. From
[rand.dist.uni.real]p2:
"Requires: a ≤ b and b − a ≤ numeric_limits<RealType>::max()."
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181018/f78446b9/attachment.html>
More information about the llvm-bugs
mailing list