clz

by Ricardo “Rudxain” Fernández Serrata

Version 1 (September 26, 2023)

Download (35 downloads)

Count leading zero bits.

Returns the number of zero-bits (to the left of) leading the most significant one-bit in number (as a 32b integer), or 32 if it’s equal to zero.

If the number is negative, the most significant set-bit is ignored because the sign bit is the leftmost bit.

`pow(2, 15)` is just a test example, your flow (or a human user) can set it (the initial value of `n`) to absolutely any value

Rudxain profile: llamalab.com/automate/community/flows/42921

Tags: bitwise

LICENSE: https://unlicense.org

3.0 average rating from 1 reviews

5 stars
0
4 stars
0
3 stars
1
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.