Module qwt::utils

source ·
Expand description

The module provides low-level utilities to perform bitwise operations, aligned allocation, and so on.

Functions

  • Returns a 64-byte aligned vector of T with at least the given capacity.
  • Computes the position of the most significant bit in v.
  • Compute popcnt for a slice of N words.
  • Computes select(1, k) operation on a 64-bit word.
  • Utility function to partition values in sequence by the two bits that we obtain by shifting shift bits to the right. This is used by the construction of WaveletTree.
  • Remaps the alphabet of the input text with a new alphabet of consecutive symbols. New alphabet preserves the original relative order among symbols. Returns the alphabet size.