acacia.util¶
Module Contents¶
Functions¶
Raise a ValueError if |
|
Raise a ValueError if |
|
API¶
- acacia.util.require_non_negative(value: int, what: str) None¶
Raise a ValueError if
valueis negative.whatnames the value in the error message.
- acacia.util.require_positive(value: int, what: str) None¶
Raise a ValueError if
valueis zero or negative.whatnames the value in the error message.
- acacia.util.ctz(x: int, bits: int = 64)¶