Displaying 2 results from an estimated 2 matches for "set_fixed_execution_seed".
2014 Feb 03
6
[LLVMdev] ADT/Hashing.h on 32-bit platforms
...I suspect the negative performance impact on 32-bit
platforms should be small, but I didn't do any benchmarking. With
atomics one could probably replace the thread safe local static in
get_execution_seed with something that has a little less overhead.
The patch also removes a FIXME from the set_fixed_execution_seed
implementation and rewords the documentation string a bit, since using
this function in a multi-threaded program requires some kind of external
synchronization anyway.
Another attached patch implements llvm::sys::Process::GetRandomNumber()
on Windows. (There's already a Unix implementation...
2014 Feb 01
2
[LLVMdev] ADT/Hashing.h on 32-bit platforms
Hi,
Currently the hashing implementation in ADT/Hashing.h produces hash
values on 32-bit platforms that differ from the lower 32-bits of the
hash values produced on 64-bit platforms. It seems the only reason for
this difference is that the uint64_t integer seed is truncated to
size_t. Since the usage of uint64_t and size_t as types for seed values
in the implementation is somewhat