Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use int.bit_length() in next_power_of_2.
- Added docstring explaining its behaviour. - Check for negative inputs. See https://docs.python.org/3/library/stdtypes.html#int.bit_length. PiperOrigin-RevId: 615731376
- Loading branch information