Skip to content

Commit

Permalink
Auto merge of #3344 - loongarch-rs:hwcap, r=JohnTitor
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Sep 22, 2023
2 parents 6f31de3 + dcc5c92 commit c341d08
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
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 c341d08

Please sign in to comment.