Fix a couple of square root related performance problems

Bug: 71686706

Always set appr_valid when we set the approximation. The sqrt_CR
constructor used by the pi computation failed to do that.

Have square root evaluate the argument to full precision before
the recursion. That way we evaluate the argument only once and compute
the lesser approximations via simple shifts.

Fix the comment summarizing the Newton iteration computation.

Rename max_prec_needed, since the name confused me while trying to
understand this code again.

Test: Calculator tests + CR tests
Change-Id: I6d704f24579bae5a5edb4c42487acf1be8fdcee6
1 file changed