Skip to content

Commit df668f4

Browse files
committed
Auto merge of #271 - CryZe:wasm-u64-group-words, r=Amanieu
Use u64 for the GroupWord on WebAssembly Whether using 128-bit long SIMD vectors makes sense on WebAssembly is a bit unclear with the bitmask operations on those not being able to be lowered efficiently with NEON. However even the case without SIMD can be improved as wasm32 is an architecture which has 32-bit pointers, but native support for 64-bit integers. So the current general logic, that uses the pointer size in most cases, needs to be special cased for wasm32.
2 parents 12da8a0 + 9c3ab23 commit df668f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raw/generic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ use core::{mem, ptr};
99
target_pointer_width = "64",
1010
target_arch = "aarch64",
1111
target_arch = "x86_64",
12+
target_arch = "wasm32",
1213
))]
1314
type GroupWord = u64;
1415
#[cfg(all(
1516
target_pointer_width = "32",
1617
not(target_arch = "aarch64"),
1718
not(target_arch = "x86_64"),
19+
not(target_arch = "wasm32"),
1820
))]
1921
type GroupWord = u32;
2022

0 commit comments

Comments
 (0)