db34b5acd1
Previously, gen_f64 could generate numbers as high as 1.0000000002328306 in the case that u3 was 4294967295.0f64 and u2 was nonzero. This change divides the random numbers by 2**32 instead, effectively concatenating their bits as apparently intended. (Bonus fix: const.) The comments are updated to be more specific than "random float"; note that this can still generate 1.0f64 (P = 2**-54) due to rounding. |
||
---|---|---|
.. | ||
cargo | ||
compiletest | ||
etc | ||
fuzzer | ||
libcore | ||
libstd | ||
libsyntax | ||
libuv@1170ffba3a | ||
llvm@3a57b672f8 | ||
rt | ||
rustc | ||
rustdoc | ||
rustllvm | ||
test | ||
README.txt | ||
snapshots.txt |
This is preliminary version of the Rust compiler, libraries and tools Source layout: rustc/ The self-hosted compiler libcore/ The core library (imported and linked by default) libstd/ The standard library (slightly more peripheral code) libsyntax/ The Rust parser and pretty-printer rt/ The runtime system rt/rust_*.cpp - The majority of the runtime services rt/isaac - The PRNG used for pseudo-random choices in the runtime rt/bigint - The bigint library used for the 'big' type rt/uthash - Small hashtable-and-list library for C, used in runtime rt/sync - Concurrency utils rt/util - Small utility classes for the runtime. rt/vg - Valgrind headers rt/msvc - MSVC support test/ Testsuite test/compile-fail - Tests that should fail to compile test/run-fail - Tests that should compile, run and fail test/run-pass - Tests that should compile, run and succeed test/bench - Benchmarks and miscellanea test/pretty - Pretty-printer tests test/auxiliary - Dependencies of tests compiletest/ The test runner cargo/ The package manager rustdoc/ The Rust API documentation tool llvm/ The LLVM submodule libuv/ The libuv submodule rustllvm/ LLVM support code fuzzer/ A collection of fuzz testers etc/ Scripts, editor support, misc