3 ms·
lzcnt is the first instruction in his solution. Seems it's left as implicit in this post, but if you go back through the chain of posts it's there.
by chrisseaton 5y ago
lzcnt is the first instruction in his solution. Seems it's left as implicit in this post, but if you go back through the chain of posts it's there.
- failwhaleshark 5y agoLZCNT (base 2) would get you to a range of possible decimal digit (base 10) lengths that would need further processing, but it's still more expensive than a table-lookup direct solution directly to the base you're interested in.
- chrisseaton 5y ago> LZCNT (base 2) would get you to a range of possible decimal digit (base 10) lengths that would need further processing, but it's still more expensive than a table-lookup direct solution directly to the base you're interested in. Are you saying you've got a better solution than the blog post that does a direct table lookup? Can you share it?
- failwhaleshark 5y agoWhy did you quote what I said that has nothing to do with it? Do you have a better solution?