对于带有BMI2指令的 CPU,可以使用内置函数在 GCC 中使用并行位存储 (pdep) 和并行位提取 (pext) :
unsigned int _pdep_u32 (unsigned int, unsigned int)
unsigned int _pext_u32 (unsigned int, unsigned int)
unsigned long long _pdep_u64 (unsigned long long, unsigned long long)
unsigned long long _pext_u64 (unsigned long long, unsigned long long)
它们在英特尔编译器上的等价物是什么?铿锵声?