int __builtin_clz(unsigned long long int a){
int res=0;
while(!(a&0x80000000)){///0x80000000 = 1ll<<31
res++;
a<<=1;
}
return res;
}
__builtin_clz
最新推荐文章于 2024-10-03 12:47:19 发布
int __builtin_clz(unsigned long long int a){
int res=0;
while(!(a&0x80000000)){///0x80000000 = 1ll<<31
res++;
a<<=1;
}
return res;
}