Lines Matching refs:Td
606 template <typename Ts, typename Td>
607 inline Td ExtractBits(Ts value, int least_significant_bit, Td mask) { in ExtractBits()
608 return Td((value >> least_significant_bit) & Ts(mask)); in ExtractBits()
611 template <typename Ts, typename Td>
612 inline void AssignBit(Td& dst, // NOLINT(runtime/references) in AssignBit()
617 VIXL_ASSERT(bit < static_cast<int>(sizeof(Td) * 8)); in AssignBit()
618 Td mask(1); in AssignBit()
620 dst |= Td(value) << bit; in AssignBit()
623 template <typename Td, typename Ts>
624 inline void AssignBits(Td& dst, // NOLINT(runtime/references) in AssignBits()
629 VIXL_ASSERT(least_significant_bit < static_cast<int>(sizeof(Td) * 8)); in AssignBits()
630 VIXL_ASSERT(((Td(mask) << least_significant_bit) >> least_significant_bit) == in AssignBits()
631 Td(mask)); in AssignBits()
633 dst &= ~(Td(mask) << least_significant_bit); in AssignBits()
634 dst |= Td(value) << least_significant_bit; in AssignBits()