rust/src/etc
Huon Wilson 1e2283de43 std::rand: correct an off-by-one in the Ziggurat code.
The code was using (in the notation of Doornik 2005) `f(x_{i+1}) -
f(x_{i+2})` rather than `f(x_i) - f(x_{i+1})`. This corrects that, and
removes the F_DIFF tables which caused this problem in the first place.

They `F_DIFF` tables are a micro-optimisation (in theory, they could
easily be a micro-pessimisation): that `if` gets hit about 1% of the
time for Exp/Normal, and the rest of the condition involves RNG calls
and a floating point `exp`, so it is unlikely that saving a single FP
subtraction will be very useful (especially as more tables means more
memory reads and higher cache pressure, as well as taking up space in
the binary (although only ~2k in this case)).

Closes #10084. Notably, unlike that issue suggests, this wasn't a
problem with the Exp tables. It affected Normal too, but since it is
symmetric, there was no bias in the mean (as the bias was equal on the
positive and negative sides and so cancelled out) but it was visible as
a variance slightly lower than it should be.
2013-10-31 23:49:39 +11:00
..
emacs Fix single-line-style paragraph fills with code immediately before or after 2013-09-28 17:40:24 -04:00
gedit track language changes, improve attr handling in GtkSourceView language-spec 2013-10-18 03:35:26 +00:00
kate auto merge of #9552 : brson/rust/0.9-pre, r=alexcrichton 2013-09-27 13:51:07 -07:00
mingw-fix-include The purpose of these headers is to fix issues with mingw v4.0, as described in #9246. 2013-09-17 01:06:01 -07:00
pkg Package system runtime dependencies into Windows distribution. 2013-10-02 11:40:50 -07:00
third-party Package system runtime dependencies into snapshots 2013-10-02 11:40:44 -07:00
vim Fix Vim indent for wrapped function arguments. 2013-10-30 00:27:15 +11:00
zsh remove type_use 2013-09-26 17:27:23 -04:00
adb_run_wrapper.sh etc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.sh 2013-06-17 18:46:04 +09:00
apple-darwin.supp
check-binaries.py Expand tidy to prevent binaries from being checked 2013-09-30 10:15:47 -07:00
check-links.pl remove obsolete foreach keyword 2013-08-03 22:48:02 -04:00
check-summary.py Add a license check to tidy. #4018 2013-01-17 23:28:42 -08:00
cmathconsts.c doc: convert remaining uses of core:: to std::. 2013-08-16 15:54:14 +10:00
combine-tests.py Remove even more of std::io 2013-10-24 14:21:57 -07:00
copy-runtime-deps.py Package system runtime dependencies into Windows distribution. 2013-10-02 11:40:50 -07:00
ctags.rust ctags: add macros 2013-06-28 16:17:04 +02:00
extract_grammar.py extract_grammar symnames 2013-08-18 07:25:54 +02:00
extract-tests.py register snapshots 2013-10-23 18:06:12 -04:00
generate-keyword-tests.py Add script and tests for using keywords as identifiers 2013-08-26 15:50:52 +02:00
get-snapshot.py Don't fail when unpacking the windows snapshot 2013-10-04 21:16:54 -07:00
indenter add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
latest-unix-snaps.py add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
libc.c add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
licenseck.py Tidy 2013-10-25 18:33:05 -07:00
local_stage0.sh Copy the correct libs when using local-rust-root 2013-07-04 16:18:05 +02:00
make-snapshot.py mk: Remove CFG_INSTALL_SNAP logic. #2664 2013-07-19 15:35:42 -07:00
mirror-all-snapshots.py add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
snapshot.py Move rust's uv implementation to its own crate 2013-10-29 08:39:22 -07:00
sugarise-doc-comments.py add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
tidy.py tidy: allow arbitrary spaces between // and NOTE 2013-07-23 21:34:02 +02:00
unicode.py rename std::iterator to std::iter 2013-09-09 03:21:46 -04:00
x86.supp Fix valgrind suppression on mac 2013-08-26 17:39:50 -07:00
ziggurat_tables.py std::rand: correct an off-by-one in the Ziggurat code. 2013-10-31 23:49:39 +11:00