谈到Glibc
HWCAP
用于允许C库
基于CPU特性加载优化的库
在运行时,它主要关注x86_64世界
针对更高的x86-64级别
或者能够为具有AVX支持的系统加载优化的库。不过,龙森现在已经为龙拱HWCAPs提供了初步支持。
作为对x86_64 Glibc HWCAP支持的补充,现在为LoongArch处理器提供了这些硬件功能基础架构。目前,LoongArch HWCAP支持的重点是LASX、LSX和UAL处理器ISA扩展。LSX(Loongson SIMD扩展)和LASX(Looingson Advanced SIMD扩展(LASX))是类似于AVX的LoongArch矢量扩展。UAL是LoongArch的扩展,围绕着处理不对齐的内存访问。
因此
这个代码
now merged to Glibc is the HWCAPs support on LoongArch for allowing optimized library handling based on the presence of LSX / LASX / UAL processor ISA capabilities. As x86_64 HWCAPs support still isn't too widely used yet (unfortunately), we'll see how much uptake there is to LoongArch HWCAPs use.