You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in adding builtins for popcount, count leading zeros (clz) and count trailing zeros (ctz), since these have specialized CPU instructions on many platforms. They would be used in the Bits/FiniteBits instances for Int/Word etc. Looking at the runtime, it seems builtins are either implemented as primops or as FFI functions. Which would be preferable here?
The text was updated successfully, but these errors were encountered:
I'm interested in adding builtins for popcount, count leading zeros (clz) and count trailing zeros (ctz), since these have specialized CPU instructions on many platforms. They would be used in the
Bits
/FiniteBits
instances forInt
/Word
etc. Looking at the runtime, it seems builtins are either implemented as primops or as FFI functions. Which would be preferable here?The text was updated successfully, but these errors were encountered: