Skip to content

Add riscv64 and loongarch64 support - #74

Merged
zsliu98 merged 2 commits into
ZL-Audio:mainfrom
iv-m:add-riscv64-and-loongarch64-support
Jul 17, 2026
Merged

Add riscv64 and loongarch64 support#74
zsliu98 merged 2 commits into
ZL-Audio:mainfrom
iv-m:add-riscv64-and-loongarch64-support

Conversation

@iv-m

@iv-m iv-m commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

A small series of changes to CMakelists.txt to make ZLCompressor buildable on loongarch64 and riscv64 linux.

Tested on Loongson LS3A6000 desktop (loongarch64, in both LSX and LASX mode) and a SpacemiT K1 board (riscv64 with RVV) running linux. On both machines ZLCompressor builds and works with this series applied.

Acknowledgments

By submitting this pull request, I acknowledge and confirm the following:

  • If this is not a multilingual/localization support pull request, I confirm that this feature, fix, or change has been discussed and aligned upon in the repository's Discussions section prior to opening this PR.
  • I agree that all code contributed through this pull request is licensed under the Apache-2.0 License.
  • I certify that I am the sole author and legal owner of this code, or that I have the necessary rights and permissions to contribute it under the specified license without violating any third-party intellectual property.
  • I have manually reviewed this code and verified its functionality.

LoongArch64 architecture provides two SIMD APIs: LSX (with
128-bit registers) and LASX (with 256-bit registers). Both
are supported by highway.

This change allows to compile ZL Compressor for LoongArch64
linux.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

It is strictly advised to use same flags when compliling
and linking, especially when LTO is used.

To avoid breaking builds on OSs I don't have access to,
this change is linux-only.
@iv-m
iv-m force-pushed the add-riscv64-and-loongarch64-support branch from 43720c5 to 2900321 Compare July 17, 2026 12:21
@zsliu98

zsliu98 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Thanks again. I am merging it now.

@zsliu98
zsliu98 merged commit 2bc7772 into ZL-Audio:main Jul 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants