17 lines
193 B
C
17 lines
193 B
C
#include <fx/core/bitop.h>
|
|
|
|
int fx_popcountl(long v)
|
|
{
|
|
return __builtin_popcountl(v);
|
|
}
|
|
|
|
int fx_ctzl(long v)
|
|
{
|
|
return __builtin_ctzl(v);
|
|
}
|
|
|
|
int fx_clzl(long v)
|
|
{
|
|
return __builtin_clzl(v);
|
|
}
|