Lines Matching defs:offset
129 * \brief Converts a one-hot encoding to an offset encoding.
134 * \return The offset encoding.
143 * \brief Converts an offset encoding to a one-hot encoding.
147 * \param[in] offset The offset encoding.
150 static inline uint64_t rogue_onehot(uint64_t offset)
152 assert(offset < 64ULL);
153 return (1ULL << offset);
220 * \brief Returns the byte offset of the bitrange moving left from the LSB.
223 * \return The byte offset.
234 * \brief Returns the array-indexable byte offset of a bit-range if the sequence
248 * bit-range. \return The byte offset.
260 * \brief Returns the bit offset of a bit-range if the sequence it represents is
263 * E.g. bit 17 has a bit offset of 1.
266 * \return The bit offset.
293 * \brief For a given bit offset, returns the maximum number of bits (including
296 * E.g. When trying to insert an 8-bit value offset of 13, a maximum of 6 bits
307 * \param[in] The bit offset.
310 static inline size_t rogue_max_bits(size_t offset)
312 return (offset % 8) + 1;