Module ph::utils

source ·
Expand description

Utility functions.

Functions§

  • Maps 16-bit hash to the range [0, n), where n is a 16-bit integer.
  • Maps 32-bit hash to the range [0, n), where n is a 32-bit integer.
  • Maps 64-bit hash to the range [0, n), where n is a 32-bit integer.
  • Maps 64-bit hash to the range [0, n), where n is a 64-bit integer.
  • Reads number_of_bits bits, rounded up to multiple of 64, from input.

Type Aliases§