http://llvm.org/bugs/show_bug.cgi?id=18767

This is a fix & test for this bug in uniform_real_distribution.  I believe the 
bug is simply due to roundoff error, and the way to fix it is to iterate until 
the roundoff does not happen.


In the test case, which is an extreme, there are about 2.6 iterations / call.  
In a more realistic scenario, such as defaulting the range to [0, 1), there is 
only 1 iteration / call (as before this fix).

Howard

Attachment: PR18767.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to