Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the LoongArch64 HWCAP values #3344

Merged
merged 1 commit into from Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,21 @@ align_const! {
};
}

pub const HWCAP_CPUCFG: ::c_ulong = 1 << 0;
pub const HWCAP_LAM: ::c_ulong = 1 << 1;
pub const HWCAP_UAL: ::c_ulong = 1 << 2;
pub const HWCAP_FPU: ::c_ulong = 1 << 3;
pub const HWCAP_LSX: ::c_ulong = 1 << 4;
pub const HWCAP_LASX: ::c_ulong = 1 << 5;
pub const HWCAP_CRC32: ::c_ulong = 1 << 6;
pub const HWCAP_COMPLEX: ::c_ulong = 1 << 7;
pub const HWCAP_CRYPTO: ::c_ulong = 1 << 8;
pub const HWCAP_LVZ: ::c_ulong = 1 << 9;
pub const HWCAP_LBT_X86: ::c_ulong = 1 << 10;
pub const HWCAP_LBT_ARM: ::c_ulong = 1 << 11;
pub const HWCAP_LBT_MIPS: ::c_ulong = 1 << 12;
pub const HWCAP_PTW: ::c_ulong = 1 << 13;

pub const SYS_io_setup: ::c_long = 0;
pub const SYS_io_destroy: ::c_long = 1;
pub const SYS_io_submit: ::c_long = 2;
Expand Down