core: add rosetta support
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user