Hi Stefan,

It should work on unsigned integer types and use exact computation (not 
floating-point computations like np.log2).

For an example, see 
https://graphics.stanford.edu/~seander/bithacks.html#IntegerLogDeBruijn.
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: [email protected]

Reply via email to