mirror of
https://github.com/rui314/mold.git
synced 2024-09-11 21:17:28 +03:00
Simplify
This commit is contained in:
parent
7cb97e153a
commit
ad87ac28b7
@ -765,7 +765,7 @@ static void shuffle(std::vector<T> &vec, u64 seed) {
|
||||
|
||||
// Xorshift random number generator. We use this RNG because it is
|
||||
// measurably faster than MT19937.
|
||||
auto rand = [&]() {
|
||||
auto rand = [&] {
|
||||
seed ^= seed << 13;
|
||||
seed ^= seed >> 7;
|
||||
seed ^= seed << 17;
|
||||
|
@ -71,7 +71,7 @@ static void do_load_plugin(Context<E> &ctx) {
|
||||
|
||||
template <typename E>
|
||||
void load_lto_plugin(Context<E> &ctx) {
|
||||
std::call_once(ctx.lto_plugin_loaded, [&]() { do_load_plugin(ctx); });
|
||||
std::call_once(ctx.lto_plugin_loaded, [&] { do_load_plugin(ctx); });
|
||||
}
|
||||
|
||||
template <typename E>
|
||||
|
Loading…
Reference in New Issue
Block a user