Searched refs:MagicNumbersForDivision (Results 1 – 13 of 13) sorted by relevance
16 bool MagicNumbersForDivision<T>::operator==( in operator ==()17 const MagicNumbersForDivision& rhs) const { in operator ==()23 MagicNumbersForDivision<T> SignedDivisionByConstant(T d) { in SignedDivisionByConstant()55 return MagicNumbersForDivision<T>(neg ? (0 - mul) : mul, p - bits, false); in SignedDivisionByConstant()60 MagicNumbersForDivision<T> UnsignedDivisionByConstant(T d, in UnsignedDivisionByConstant()96 return MagicNumbersForDivision<T>(q2 + 1, p - bits, a); in UnsignedDivisionByConstant()103 template struct MagicNumbersForDivision<uint32_t>; variable104 template struct MagicNumbersForDivision<uint64_t>; variable106 template MagicNumbersForDivision<uint32_t> SignedDivisionByConstant(uint32_t d);107 template MagicNumbersForDivision<uint64_t> SignedDivisionByConstant(uint64_t d);[all …]
17 struct MagicNumbersForDivision { struct18 MagicNumbersForDivision(T m, unsigned s, bool a) in MagicNumbersForDivision() argument20 bool operator==(const MagicNumbersForDivision& rhs) const;31 MagicNumbersForDivision<T> SignedDivisionByConstant(T d); argument39 MagicNumbersForDivision<T> UnsignedDivisionByConstant(
20 const MagicNumbersForDivision<T>& mag) { in operator <<()28 typedef MagicNumbersForDivision<uint32_t> M32;29 typedef MagicNumbersForDivision<uint64_t> M64;
92 base::MagicNumbersForDivision<uint32_t> const mag = in Int32Div()113 base::MagicNumbersForDivision<uint32_t> const mag = in Uint32Div()
40 base::MagicNumbersForDivision<uint32_t> const mag = in IsTruncatingDiv()
2980 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
3108 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
3607 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
4315 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
4805 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
5470 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
5777 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()
6494 base::MagicNumbersForDivision<uint32_t> mag = in TruncatingDiv()