
    E#i                         S r  " S S5      rg)z(Module with some bits utility functions.c                       \ rS rSrSr\S\S\S\4S j5       r\S\S\S\4S j5       r	\S\S\S\4S	 j5       r
\S\S\S\4S
 j5       r\S\S\S\4S j5       r\S\S\S\4S j5       rSrg)BitUtils   z*Class container for bit utility functions.valuebit_numreturnc                     U SU-  -  S:g  $ )z
Get if the specified bit is set.

Args:
    value (int)  : Value
    bit_num (int): Bit number to check

Returns:
    bool: True if bit is set, false otherwise
        r   r   s     e/home/james-whalen/.local/lib/python3.13/site-packages/ccxt/static_dependencies/bip/utils/misc/bit.pyIsBitSetBitUtils.IsBitSet   s     g&1,,    bit_maskc                     X-  S:g  $ )z
Get if the specified bits are set.

Args:
    value (int)   : Value
    bit_mask (int): Bit mask to check

Returns:
    bool: True if bit is set, false otherwise
r
   r   r   r   s     r   
AreBitsSetBitUtils.AreBitsSet*   s      Q&&r   c                     U SU-  -  $ )z
Set the specified bit.

Args:
    value (int)  : Value
    bit_num (int): Bit number to set

Returns:
    int: Value with the specified bit set
r	   r   r   s     r   SetBitBitUtils.SetBit9   s     W%%r   c                 
    X-  $ )z
Set the specified bits.

Args:
    value (int)   : Value
    bit_mask (int): Bit mask to set

Returns:
    int: Value with the specified bit set
r   r   s     r   SetBitsBitUtils.SetBitsH   s     r   c                     U SU-  ) -  $ )z
Reset the specified bit.

Args:
    value (int)  : Value
    bit_num (int): Bit number to reset

Returns:
    int: Value with the specified bit reset
r	   r   r   s     r   ResetBitBitUtils.ResetBitW   s     g&&r   c                     X) -  $ )z
Reset the specified bits.

Args:
    value (int)   : Value
    bit_mask (int): Bit mask to reset

Returns:
    int: Value with the specified bit reset
r   r   s     r   	ResetBitsBitUtils.ResetBitsf   s     y  r   r   N)__name__
__module____qualname____firstlineno____doc__staticmethodintboolr   r   r   r   r   r    __static_attributes__r   r   r   r   r      s   4- --"&- - '# ' '%)' ' &c && #& &  s   "%    ' ''"%' ' ! !!$'! !r   r   N)r&   r   r   r   r   <module>r+      s   * /[! [!r   