diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:11:56 +0000 |
commit | e9699e2b995d3ded2efd5580ae6dadf555181d62 (patch) | |
tree | dd029bd1e3b8b9ffb627115e7ecc577f250fa742 /dlmalloc/src | |
parent | Adding upstream version 0.0~git20230113.4362b18. (diff) | |
download | wasi-libc-e9699e2b995d3ded2efd5580ae6dadf555181d62.tar.xz wasi-libc-e9699e2b995d3ded2efd5580ae6dadf555181d62.zip |
Adding upstream version 0.0~git20230621.7018e24.upstream/0.0_git20230621.7018e24
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dlmalloc/src')
-rw-r--r-- | dlmalloc/src/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dlmalloc/src/malloc.c b/dlmalloc/src/malloc.c index 6e7a15c..c9c8ea6 100644 --- a/dlmalloc/src/malloc.c +++ b/dlmalloc/src/malloc.c @@ -2839,7 +2839,7 @@ static size_t traverse_and_check(mstate m); #define treebin_at(M,i) (&((M)->treebins[i])) /* assign tree index for size S to variable I. Use x86 asm if possible */ -#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__) || defined(__wasm__)) #define compute_tree_index(S, I)\ {\ unsigned int X = S >> TREEBIN_SHIFT;\ @@ -2942,7 +2942,7 @@ static size_t traverse_and_check(mstate m); /* index corresponding to given bit. Use x86 asm if possible */ -#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) +#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__) || defined(__wasm__)) #define compute_bit2idx(X, I)\ {\ unsigned int J;\ |