December 16, 2013 [phobos] [D-Programming-Language/phobos] 30ced8: Fix issue 11598 - uniform could be faster for inte... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 30ced820e56c9088d08f6254c068df40a995706f https://github.com/D-Programming-Language/phobos/commit/30ced820e56c9088d08f6254c068df40a995706f Author: Chris Cain <zshazz@gmail.com> Date: 2013-11-24 (Sun, 24 Nov 2013) Changed paths: M std/random.d Log Message: ----------- Fix issue 11598 - uniform could be faster for integrals These changes retain the uniform quality of this function while, in the common case, cutting the number of division operations in half. Additionally, extra unittests were added to assure that all of the bounds were tested properly. Commit: 7c01f661ca489dc36c5ef8879a1fe1ca4998ea1c https://github.com/D-Programming-Language/phobos/commit/7c01f661ca489dc36c5ef8879a1fe1ca4998ea1c Author: Chris Cain <zshazz@gmail.com> Date: 2013-12-02 (Mon, 02 Dec 2013) Changed paths: M std/random.d Log Message: ----------- Fix formatting issues Commit: 18b8716ff2e84ab6f36cbf004fd70a4a3ded183d https://github.com/D-Programming-Language/phobos/commit/18b8716ff2e84ab6f36cbf004fd70a4a3ded183d Author: Chris Cain <zshazz@gmail.com> Date: 2013-12-02 (Mon, 02 Dec 2013) Changed paths: M std/random.d Log Message: ----------- Include algorithm documentation for integral uniform Commit: 3e63ce8a0fd0e2ed88ece75a6bf9816e99d2967e https://github.com/D-Programming-Language/phobos/commit/3e63ce8a0fd0e2ed88ece75a6bf9816e99d2967e Author: Chris Cain <zshazz@gmail.com> Date: 2013-12-03 (Tue, 03 Dec 2013) Changed paths: M std/random.d Log Message: ----------- Remove special-case check on rare condition A special case was checked that only occurs when calling uniform with a range of only one element. This was not necessary to keep the math correct and represented a slight slowdown in the common case for no apparent benefit. Commit: 62f058f11c4efa8bef8703880aca958f0dc67e6c https://github.com/D-Programming-Language/phobos/commit/62f058f11c4efa8bef8703880aca958f0dc67e6c Author: Chris Cain <zshazz@gmail.com> Date: 2013-12-03 (Tue, 03 Dec 2013) Changed paths: M std/random.d Log Message: ----------- Fixed trailing whitespace Commit: fc48d56284f19bf171780554b63b4ae83808b894 https://github.com/D-Programming-Language/phobos/commit/fc48d56284f19bf171780554b63b4ae83808b894 Author: monarch dodra <monarchdodra@gmail.com> Date: 2013-12-16 (Mon, 16 Dec 2013) Changed paths: M std/random.d Log Message: ----------- Merge pull request #1717 from Zshazz/issue_11598 Fix issue 11598 - uniform could be faster for integrals Compare: https://github.com/D-Programming-Language/phobos/compare/11f3b0f721fc...fc48d56284f1 |
Copyright © 1999-2021 by the D Language Foundation