/guava/android/guava/src/com/google/common/math/LongMath.java
checkPositive( guessSquared == x) ;
checkRoundingUnnecessary ( guessSquared == x ) ;
return IntMath.sqrt((int) x, mode); } long guess = (long) Math.sqrt((double) x); long guessSquared = guess * guess; switch (mode) { case UNNECESSARY: <extra_id_0> return guess; case FLOOR: case DOWN: if (x < guessSquared) { return guess - 1; }