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 | 51072358a714f050fe30227b6449206ae4186b3d (patch) | |
tree | 397b0ca06604448f29adb2e8c35e96a0c35cc614 /dlmalloc | |
parent | Adding debian version 0.0~git20230113.4362b18-3. (diff) | |
download | wasi-libc-51072358a714f050fe30227b6449206ae4186b3d.tar.xz wasi-libc-51072358a714f050fe30227b6449206ae4186b3d.zip |
Merging upstream version 0.0~git20230621.7018e24.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dlmalloc')
-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;\ |