Header menu logo fantomas

Bits Module

Functions and values

Function or value Description

b0 n

Full Usage: b0 n

Parameters:
    n : int

Returns: int

Get the least significant byte of a 32-bit integer

n : int
Returns: int

b1 n

Full Usage: b1 n

Parameters:
    n : int

Returns: int

Get the 2nd least significant byte of a 32-bit integer

n : int
Returns: int

b2 n

Full Usage: b2 n

Parameters:
    n : int

Returns: int

Get the 3rd least significant byte of a 32-bit integer

n : int
Returns: int

b3 n

Full Usage: b3 n

Parameters:
    n : int

Returns: int

Get the most significant byte of a 32-bit integer

n : int
Returns: int

mask32 m n

Full Usage: mask32 m n

Parameters:
    m : int32
    n : int

Returns: int
m : int32
n : int
Returns: int

mask64 m n

Full Usage: mask64 m n

Parameters:
    m : int32
    n : int

Returns: int64
m : int32
n : int
Returns: int64

pown32 n

Full Usage: pown32 n

Parameters:
    n : int

Returns: int
n : int
Returns: int

pown64 n

Full Usage: pown64 n

Parameters:
    n : int

Returns: int64
n : int
Returns: int64

Type something to start searching.