From c58b0a5f4da20a2231c622b4c67d52ccfdf32772 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 14 Jul 2021 12:03:07 +0100 Subject: [PATCH] Removes a register copy from x86 codegen. --- src/mem/entropy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/entropy.h b/src/mem/entropy.h index 8654532..80bd6f4 100644 --- a/src/mem/entropy.h +++ b/src/mem/entropy.h @@ -56,7 +56,7 @@ namespace snmalloc { uint64_t bottom_bit = bit_source & 1; bit_source = (bottom_bit << 63) | (bit_source >> 1); - return bottom_bit & 1; + return bit_source & 1; } /**