mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-10-07 06:56:32 +02:00
Fix breaking tests, let compiler do register alloc
This commit is contained in:
parent
96668b20e3
commit
42a635282a
1 changed files with 2 additions and 2 deletions
|
@ -410,9 +410,9 @@ static size_t get_free_slot(struct random_state *rng, size_t slots, const struct
|
||||||
__asm__ (
|
__asm__ (
|
||||||
|
|
||||||
// set up mask
|
// set up mask
|
||||||
"mov $0xfffffffffffffff8, %%rdx\n\t"
|
"mov $0xfffffffffffffff8, %1\n\t"
|
||||||
// tmp is now same as shift amount mod 256 in portable case
|
// tmp is now same as shift amount mod 256 in portable case
|
||||||
"pext %[tmp], %[random_index], %%rdx\n\t"
|
"pext %[tmp], %[random_index], %1\n\t"
|
||||||
|
|
||||||
: [tmp] "=r" (tmp)
|
: [tmp] "=r" (tmp)
|
||||||
: [random_index] "r" (random_index));
|
: [random_index] "r" (random_index));
|
||||||
|
|
Loading…
Add table
Reference in a new issue