I'm developing an algorithm that uses __builtin_ffsll()
with uint64_t
type.
I want to switch to 512-bit field using boost multiprecision library (I'm running on a machine with avx512 support).
Is there a similar function as the mentioned builtin? Alternatively, how can I efficiently implement such functionality for 512-bit integers?