Lines Matching refs:SlowDynamicAPInt
17 SlowDynamicAPInt::SlowDynamicAPInt(int64_t Val) in SlowDynamicAPInt() function in SlowDynamicAPInt
19 SlowDynamicAPInt::SlowDynamicAPInt() : SlowDynamicAPInt(0) {} in SlowDynamicAPInt() function in SlowDynamicAPInt
20 SlowDynamicAPInt::SlowDynamicAPInt(const APInt &Val) : Val(Val) {} in SlowDynamicAPInt() function in SlowDynamicAPInt
21 SlowDynamicAPInt &SlowDynamicAPInt::operator=(int64_t Val) { in operator =()
22 return *this = SlowDynamicAPInt(Val); in operator =()
24 SlowDynamicAPInt::operator int64_t() const { return Val.getSExtValue(); } in operator int64_t()
26 hash_code detail::hash_value(const SlowDynamicAPInt &X) { in hash_value()
33 SlowDynamicAPInt &detail::operator+=(SlowDynamicAPInt &A, int64_t B) { in operator +=()
34 return A += SlowDynamicAPInt(B); in operator +=()
36 SlowDynamicAPInt &detail::operator-=(SlowDynamicAPInt &A, int64_t B) { in operator -=()
37 return A -= SlowDynamicAPInt(B); in operator -=()
39 SlowDynamicAPInt &detail::operator*=(SlowDynamicAPInt &A, int64_t B) { in operator *=()
40 return A *= SlowDynamicAPInt(B); in operator *=()
42 SlowDynamicAPInt &detail::operator/=(SlowDynamicAPInt &A, int64_t B) { in operator /=()
43 return A /= SlowDynamicAPInt(B); in operator /=()
45 SlowDynamicAPInt &detail::operator%=(SlowDynamicAPInt &A, int64_t B) { in operator %=()
46 return A %= SlowDynamicAPInt(B); in operator %=()
49 bool detail::operator==(const SlowDynamicAPInt &A, int64_t B) { in operator ==()
50 return A == SlowDynamicAPInt(B); in operator ==()
52 bool detail::operator!=(const SlowDynamicAPInt &A, int64_t B) { in operator !=()
53 return A != SlowDynamicAPInt(B); in operator !=()
55 bool detail::operator>(const SlowDynamicAPInt &A, int64_t B) { in operator >()
56 return A > SlowDynamicAPInt(B); in operator >()
58 bool detail::operator<(const SlowDynamicAPInt &A, int64_t B) { in operator <()
59 return A < SlowDynamicAPInt(B); in operator <()
61 bool detail::operator<=(const SlowDynamicAPInt &A, int64_t B) { in operator <=()
62 return A <= SlowDynamicAPInt(B); in operator <=()
64 bool detail::operator>=(const SlowDynamicAPInt &A, int64_t B) { in operator >=()
65 return A >= SlowDynamicAPInt(B); in operator >=()
67 SlowDynamicAPInt detail::operator+(const SlowDynamicAPInt &A, int64_t B) { in operator +()
68 return A + SlowDynamicAPInt(B); in operator +()
70 SlowDynamicAPInt detail::operator-(const SlowDynamicAPInt &A, int64_t B) { in operator -()
71 return A - SlowDynamicAPInt(B); in operator -()
73 SlowDynamicAPInt detail::operator*(const SlowDynamicAPInt &A, int64_t B) { in operator *()
74 return A * SlowDynamicAPInt(B); in operator *()
76 SlowDynamicAPInt detail::operator/(const SlowDynamicAPInt &A, int64_t B) { in operator /()
77 return A / SlowDynamicAPInt(B); in operator /()
79 SlowDynamicAPInt detail::operator%(const SlowDynamicAPInt &A, int64_t B) { in operator %()
80 return A % SlowDynamicAPInt(B); in operator %()
83 bool detail::operator==(int64_t A, const SlowDynamicAPInt &B) { in operator ==()
84 return SlowDynamicAPInt(A) == B; in operator ==()
86 bool detail::operator!=(int64_t A, const SlowDynamicAPInt &B) { in operator !=()
87 return SlowDynamicAPInt(A) != B; in operator !=()
89 bool detail::operator>(int64_t A, const SlowDynamicAPInt &B) { in operator >()
90 return SlowDynamicAPInt(A) > B; in operator >()
92 bool detail::operator<(int64_t A, const SlowDynamicAPInt &B) { in operator <()
93 return SlowDynamicAPInt(A) < B; in operator <()
95 bool detail::operator<=(int64_t A, const SlowDynamicAPInt &B) { in operator <=()
96 return SlowDynamicAPInt(A) <= B; in operator <=()
98 bool detail::operator>=(int64_t A, const SlowDynamicAPInt &B) { in operator >=()
99 return SlowDynamicAPInt(A) >= B; in operator >=()
101 SlowDynamicAPInt detail::operator+(int64_t A, const SlowDynamicAPInt &B) { in operator +()
102 return SlowDynamicAPInt(A) + B; in operator +()
104 SlowDynamicAPInt detail::operator-(int64_t A, const SlowDynamicAPInt &B) { in operator -()
105 return SlowDynamicAPInt(A) - B; in operator -()
107 SlowDynamicAPInt detail::operator*(int64_t A, const SlowDynamicAPInt &B) { in operator *()
108 return SlowDynamicAPInt(A) * B; in operator *()
110 SlowDynamicAPInt detail::operator/(int64_t A, const SlowDynamicAPInt &B) { in operator /()
111 return SlowDynamicAPInt(A) / B; in operator /()
113 SlowDynamicAPInt detail::operator%(int64_t A, const SlowDynamicAPInt &B) { in operator %()
114 return SlowDynamicAPInt(A) % B; in operator %()
126 bool SlowDynamicAPInt::operator==(const SlowDynamicAPInt &O) const { in operator ==()
130 bool SlowDynamicAPInt::operator!=(const SlowDynamicAPInt &O) const { in operator !=()
134 bool SlowDynamicAPInt::operator>(const SlowDynamicAPInt &O) const { in operator >()
138 bool SlowDynamicAPInt::operator<(const SlowDynamicAPInt &O) const { in operator <()
142 bool SlowDynamicAPInt::operator<=(const SlowDynamicAPInt &O) const { in operator <=()
146 bool SlowDynamicAPInt::operator>=(const SlowDynamicAPInt &O) const { in operator >=()
174 SlowDynamicAPInt SlowDynamicAPInt::operator+(const SlowDynamicAPInt &O) const { in operator +()
175 return SlowDynamicAPInt( in operator +()
178 SlowDynamicAPInt SlowDynamicAPInt::operator-(const SlowDynamicAPInt &O) const { in operator -()
179 return SlowDynamicAPInt( in operator -()
182 SlowDynamicAPInt SlowDynamicAPInt::operator*(const SlowDynamicAPInt &O) const { in operator *()
183 return SlowDynamicAPInt( in operator *()
186 SlowDynamicAPInt SlowDynamicAPInt::operator/(const SlowDynamicAPInt &O) const { in operator /()
187 return SlowDynamicAPInt( in operator /()
190 SlowDynamicAPInt detail::abs(const SlowDynamicAPInt &X) { in abs()
193 SlowDynamicAPInt detail::ceilDiv(const SlowDynamicAPInt &LHS, in ceilDiv()
194 const SlowDynamicAPInt &RHS) { in ceilDiv()
198 return SlowDynamicAPInt(APIntOps::RoundingSDiv( in ceilDiv()
201 SlowDynamicAPInt detail::floorDiv(const SlowDynamicAPInt &LHS, in floorDiv()
202 const SlowDynamicAPInt &RHS) { in floorDiv()
206 return SlowDynamicAPInt(APIntOps::RoundingSDiv( in floorDiv()
211 SlowDynamicAPInt detail::mod(const SlowDynamicAPInt &LHS, in mod()
212 const SlowDynamicAPInt &RHS) { in mod()
217 SlowDynamicAPInt detail::gcd(const SlowDynamicAPInt &A, in gcd()
218 const SlowDynamicAPInt &B) { in gcd()
221 return SlowDynamicAPInt( in gcd()
226 SlowDynamicAPInt detail::lcm(const SlowDynamicAPInt &A, in lcm()
227 const SlowDynamicAPInt &B) { in lcm()
228 SlowDynamicAPInt X = abs(A); in lcm()
229 SlowDynamicAPInt Y = abs(B); in lcm()
234 SlowDynamicAPInt SlowDynamicAPInt::operator%(const SlowDynamicAPInt &O) const { in operator %()
236 return SlowDynamicAPInt(Val.sext(Width).srem(O.Val.sext(Width))); in operator %()
239 SlowDynamicAPInt SlowDynamicAPInt::operator-() const { in operator -()
243 return SlowDynamicAPInt(-Ret); in operator -()
245 return SlowDynamicAPInt(-Val); in operator -()
251 SlowDynamicAPInt &SlowDynamicAPInt::operator+=(const SlowDynamicAPInt &O) { in operator +=()
255 SlowDynamicAPInt &SlowDynamicAPInt::operator-=(const SlowDynamicAPInt &O) { in operator -=()
259 SlowDynamicAPInt &SlowDynamicAPInt::operator*=(const SlowDynamicAPInt &O) { in operator *=()
263 SlowDynamicAPInt &SlowDynamicAPInt::operator/=(const SlowDynamicAPInt &O) { in operator /=()
267 SlowDynamicAPInt &SlowDynamicAPInt::operator%=(const SlowDynamicAPInt &O) { in operator %=()
271 SlowDynamicAPInt &SlowDynamicAPInt::operator++() { in operator ++()
276 SlowDynamicAPInt &SlowDynamicAPInt::operator--() { in operator --()
284 void SlowDynamicAPInt::print(raw_ostream &OS) const { OS << Val; } in print()
286 void SlowDynamicAPInt::dump() const { print(dbgs()); } in dump()