Add RISC-V unaligned access
Aperta
- Lingua principale
- C
- Stelle
- 27.9k
- Fork
- 2.6k
- Merge medio
- 1g 3h
- PR unite (30g)
- 8
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.