__builtin_函数的使用
摘要:typedef unsigned int ui 1.int ffs(ui x){//该函数判断n的二进制末尾最后一个1的位置,从一开始 return __builtin_ffs(x); } 2.int popcount(ui x){//该函数时判断n的二进制中有多少个1 return __built
阅读全文
posted @ 2023-01-07 09:55
posted @ 2023-01-07 09:55
posted @ 2022-11-22 17:39
posted @ 2022-04-18 16:20
posted @ 2022-04-16 12:04