Skip to content

Commit

Permalink
Add the LoongArch64 HWCAP values
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed Sep 7, 2023
1 parent 8356615 commit db6958b
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit db6958b

Please sign in to comment.