core: add rosetta support

This commit is contained in:
2026-04-01 19:04:41 +01:00
parent fc43d104dc
commit 912c450e6e
3 changed files with 30 additions and 1 deletions
+16
View File
@@ -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);
}