cpu_features
1.1、cpu_features简介
是什么 ?:a cross-platform C library to retrieve CPU features (such as available instructions) at runtime.
开发语言:C
源码仓库:https://github.com/google/cpu_features
1.2、通过包管理器安装cpu_features
操作系统包管理器安装命令
Allvcpkg
vcpkg install cpu_features
vcpkg install cpu_features:x64-osx
vcpkg install cpu_features:x64-linux
vcpkg install cpu_features:x64-windows
macOSHomeBrewbrew install cpu_features
GNU/LinuxHomeBrewbrew install cpu_features
aptsudo apt-get install -y cpu_featuresc
CentOSyumsudo yum install -y cpu_features
dnfsudo dnf install -y cpu_features
openSUSEzyppersudo zypper install -y cpu_features
Alpine Linuxapksudo apk add cpu_features

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm cpu_features
Gentoo LinuxPortagesudo emerge cpu_features
1.3、通过编译源码安装cpu_features
1.4、cpu_features中包含的头文件
1.5、cpu_features中包含的库文件
  • libcpu_features.{a | so | dylib}
  • libndk_compat.{a | so | dylib}