@pikzen It's not just 32 - clz. We want values with 17 to 19 leading zeroes to return 15, and values with 14 to 16 leading zeroes to return 18. There might be a clever way to do this without a switch, but might as well use a lookup table at that point.
=> More informations about this toot | View the thread | More toots from romainguy@androiddev.social
=> View pikzen@androiddev.social profile
text/gemini
This content has been proxied by September (3851b).