Lines Matching full:width
127 unsigned Width = getMaxWidth(Val, O.Val); in operator ==() local
128 return Val.sext(Width) == O.Val.sext(Width); in operator ==()
131 unsigned Width = getMaxWidth(Val, O.Val); in operator !=() local
132 return Val.sext(Width) != O.Val.sext(Width); in operator !=()
135 unsigned Width = getMaxWidth(Val, O.Val); in operator >() local
136 return Val.sext(Width).sgt(O.Val.sext(Width)); in operator >()
139 unsigned Width = getMaxWidth(Val, O.Val); in operator <() local
140 return Val.sext(Width).slt(O.Val.sext(Width)); in operator <()
143 unsigned Width = getMaxWidth(Val, O.Val); in operator <=() local
144 return Val.sext(Width).sle(O.Val.sext(Width)); in operator <=()
147 unsigned Width = getMaxWidth(Val, O.Val); in operator >=() local
148 return Val.sext(Width).sge(O.Val.sext(Width)); in operator >=()
155 /// Bring a and b to have the same width and then call op(a, b, overflow).
156 /// If the overflow bit becomes set, resize a and b to double the width and
163 unsigned Width = getMaxWidth(A, B); in runOpWithExpandOnOverflow() local
164 APInt Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow()
168 Width *= 2; in runOpWithExpandOnOverflow()
169 Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow()
170 assert(!Overflow && "double width should be sufficient to avoid overflow!"); in runOpWithExpandOnOverflow()
197 unsigned Width = getMaxWidth(LHS.Val, RHS.Val); in ceilDiv() local
199 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::UP)); in ceilDiv()
205 unsigned Width = getMaxWidth(LHS.Val, RHS.Val); in floorDiv() local
207 LHS.Val.sext(Width), RHS.Val.sext(Width), APInt::Rounding::DOWN)); in floorDiv()
220 unsigned Width = getMaxWidth(A.Val, B.Val); in gcd() local
222 APIntOps::GreatestCommonDivisor(A.Val.sext(Width), B.Val.sext(Width))); in gcd()
235 unsigned Width = std::max(Val.getBitWidth(), O.Val.getBitWidth()); in operator %() local
236 return SlowDynamicAPInt(Val.sext(Width).srem(O.Val.sext(Width))); in operator %()