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 unable to test the significance of that because my CPU does not support the instruction. But I assume @sipa would probably know right away whether it's worth bothering.
The text was updated successfully, but these errors were encountered:
theuni
changed the title
Test performance with -lzcnt
Test performance with -mlzcnt
Mar 31, 2023
At the moment the
__builtin_clz*
compile down tobsrq
on x86_64. Compiling with-mlzcnt
wires up the actual instruction.CountBits<unsigned long long>
without-mlzcnt
:CountBits<unsigned long long>
with-mlzcnt
:I'm unable to test the significance of that because my CPU does not support the instruction. But I assume @sipa would probably know right away whether it's worth bothering.
The text was updated successfully, but these errors were encountered: