Searched refs:x_old (Results 1 – 1 of 1) sorted by relevance
1310 APInt x_old(BitWidth, 1); in sqrt() local1317 x_old = x_old.shl(i / 2); in sqrt()1323 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1324 if (x_old.ule(x_new)) in sqrt()1326 x_old = x_new; in sqrt()1335 APInt square(x_old * x_old); in sqrt()1336 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1338 return x_old; in sqrt()1343 return x_old; in sqrt()1344 return x_old + 1; in sqrt()