You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2021/09/21 16:16:53 UTC
[arrow-rs] branch master updated: add wasm32 to hash,
fix wasm32 build (#787)
This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 9ca59b6 add wasm32 to hash, fix wasm32 build (#787)
9ca59b6 is described below
commit 9ca59b6cc0571f86862836788f3a1ccf4e91f370
Author: Mike Seddon <se...@gmail.com>
AuthorDate: Wed Sep 22 02:16:46 2021 +1000
add wasm32 to hash, fix wasm32 build (#787)
* add wasm32 to hash
* cargo fmt
---
parquet/src/util/hash_util.rs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/parquet/src/util/hash_util.rs b/parquet/src/util/hash_util.rs
index 1f9c159..34d954c 100644
--- a/parquet/src/util/hash_util.rs
+++ b/parquet/src/util/hash_util.rs
@@ -33,7 +33,12 @@ fn hash_(data: &[u8], seed: u32) -> u32 {
}
}
- #[cfg(any(target_arch = "aarch64", target_arch = "arm", target_arch = "riscv64"))]
+ #[cfg(any(
+ target_arch = "aarch64",
+ target_arch = "arm",
+ target_arch = "riscv64",
+ target_arch = "wasm32"
+ ))]
unsafe {
murmur_hash2_64a(data, seed as u64) as u32
}