Searched refs:x_old (Results 1 – 1 of 1) sorted by relevance
1332 APInt x_old(BitWidth, 1); in sqrt() local1339 x_old = x_old.shl(i / 2); in sqrt()1345 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1346 if (x_old.ule(x_new)) in sqrt()1348 x_old = x_new; in sqrt()1357 APInt square(x_old * x_old); in sqrt()1358 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1360 return x_old; in sqrt()1365 return x_old; in sqrt()1366 return x_old + 1; in sqrt()