Lines Matching defs:value
108 * Sign-extend an N-bit value to 64 bits.
133 * Overloaded for access to only one bit in value
180 static_assert(std::is_integral<T>::value, "Expecting an integer type");
237 * Returns the number of set ones in the provided value.
286 * Count trailing zeros in a 32-bit value.
288 * @param An input value
289 * @return The number of trailing zeros or 32 if the value is zero.
291 inline int ctz32(uint32_t value)
293 return value ? __builtin_ctzl(value) : 32;
297 * Count trailing zeros in a 64-bit value.
299 * @param An input value
300 * @return The number of trailing zeros or 64 if the value is zero.
302 inline int ctz64(uint64_t value)
304 return value ? __builtin_ctzll(value) : 64;