facebook / facebook/zstd

Add RISC-V unaligned access

Open
#4,546 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

RISC-V C API Specification says that if the C compiler defines `__riscv_misaligned_fast`, then unaligned access is known to be fast.

Maybe we can update `xxhash.h` to add unaligned access for some RISC-V machines.

The related code:

https://github.com/facebook/zstd/blob/bfd8ad886f2948a8a0159a28e0aa6153611cd1c1/lib/common/xxhash.h#L2254-L2260

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.