public static int Sqrt(long a) { if (a <= 0L) { return(0); } if (a <= (long)(0xffffffffu)) { return((int)LMath.Sqrt32((uint)a)); } return((int)LMath.Sqrt64((ulong)a)); }