[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2014-04-03 Thread d-bugmail
/d0727dc7a02a33d855cc141f09f883501077797b Fix Issue #5240: faster std.random.uniform for [0.0, 1.0) range Following typical design in other languages, the function is named uniform01. It can be templated on floating-point type, defaulting to double if none is specified. The implementation is pretty much derived from its

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2014-04-03 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5240 bearophile_h...@eml.cc changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2011-01-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2010-11-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 --- Comment #4 from bearophile_h...@eml.cc 2010-11-22 09:44:33 PST --- (In reply to comment #3) I am probably missing something, but what is wrong with uniform!(0,1) ? Then you can add optimizations for all the special cases you want.

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2010-11-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 --- Comment #6 from bearophile_h...@eml.cc 2010-11-22 12:05:44 PST --- (In reply to comment #5) I was commenting on the suggested name uniform01. Templating the function seemed obvious to me and I was also surprised you didn't suggest doing

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2010-11-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 Denis Derman denis.s...@gmail.com changed: What|Removed |Added CC||denis.s...@gmail.com

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2010-11-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 st...@despam.it changed: What|Removed |Added CC||st...@despam.it --- Comment #3 from

[Issue 5240] Faster std.random.uniform() for [0.0, 1.0) range

2010-11-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5240 --- Comment #1 from bearophile_h...@eml.cc 2010-11-19 12:10:42 PST --- A specialized overload/function like this is useful in Phobos even if it's not faster. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email