Searched refs:x_old (Results 1 – 4 of 4) sorted by relevance
1405 APInt x_old(BitWidth, 1); in sqrt() local1412 x_old = x_old.shl(i / 2); in sqrt()1418 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1419 if (x_old.ule(x_new)) in sqrt()1421 x_old = x_new; in sqrt()1430 APInt square(x_old * x_old); in sqrt()1431 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1433 return x_old; in sqrt()1438 return x_old; in sqrt()1440 return x_old + 1; in sqrt()[all …]
1338 APInt x_old(BitWidth, 1); in sqrt() local1345 x_old = x_old.shl(i / 2); in sqrt()1351 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1352 if (x_old.ule(x_new)) in sqrt()1354 x_old = x_new; in sqrt()1363 APInt square(x_old * x_old); in sqrt()1364 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1366 return x_old; in sqrt()1371 return x_old; in sqrt()1372 return x_old + 1; in sqrt()
1063 APInt x_old(BitWidth, 1); in sqrt() local1070 x_old = x_old.shl(i / 2); in sqrt()1076 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1077 if (x_old.ule(x_new)) in sqrt()1079 x_old = x_new; in sqrt()1088 APInt square(x_old * x_old); in sqrt()1089 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1091 return x_old; in sqrt()1096 return x_old; in sqrt()1097 return x_old + 1; in sqrt()
1312 APInt x_old(BitWidth, 1); in sqrt() local1319 x_old = x_old.shl(i / 2); in sqrt()1325 x_new = (this->udiv(x_old) + x_old).udiv(two); in sqrt()1326 if (x_old.ule(x_new)) in sqrt()1328 x_old = x_new; in sqrt()1337 APInt square(x_old * x_old); in sqrt()1338 APInt nextSquare((x_old + 1) * (x_old +1)); in sqrt()1340 return x_old; in sqrt()1345 return x_old; in sqrt()1346 return x_old + 1; in sqrt()