Lines Matching defs:width
585 * The bit at position `width - 1` is replicated to all the higher bits.
590 util_mask_sign_extend(uint64_t val, unsigned width)
592 assert(width > 0 && width <= 64);
593 unsigned shift = 64 - width;
600 * The bit at position `width - 1` is replicated to all the higher bits.
601 * This assumes and asserts that the value fits into `width` bits.
604 util_sign_extend(uint64_t val, unsigned width)
606 assert(width == 64 || val < (UINT64_C(1) << width));
607 return util_mask_sign_extend(val, width);