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 -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to