wordCount

pyrogue.wordCount(bits, wordSize)[source]

Return the number of words needed to represent a bit width.

Parameters:
  • bits (int) – Number of bits to represent.

  • wordSize (int) – Word size in bits.

Returns:

Number of words required.

Return type:

int