Skip to content

Commit eb61adc

Browse files
felixonmarsovr
authored andcommitted
Add support for riscv64 (apache#769)
* Fix riscv64 target_arch This should be defined for riscv64 instead, as `riscv` doesn't match it. I have no idea for riscv32 though. * parquet: Use murmur_hash2_64a for riscv64
1 parent 14488ba commit eb61adc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arrow/src/alloc/alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub const ALIGNMENT: usize = 1 << 6;
6262
// - https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/riscv/sifive-l2-cache.txt#L41
6363
// in general all of them are the same.
6464
/// Cache and allocation multiple alignment size
65-
#[cfg(target_arch = "riscv")]
65+
#[cfg(target_arch = "riscv64")]
6666
pub const ALIGNMENT: usize = 1 << 6;
6767

6868
// This size is same across all hardware for this architecture.

parquet/src/util/hash_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn hash_(data: &[u8], seed: u32) -> u32 {
3333
}
3434
}
3535

36-
#[cfg(any(target_arch = "aarch64", target_arch = "arm"))]
36+
#[cfg(any(target_arch = "aarch64", target_arch = "arm", target_arch = "riscv64"))]
3737
unsafe {
3838
murmur_hash2_64a(data, seed as u64) as u32
3939
}

0 commit comments

Comments
 (0)