def gmpy_sqrt_fixed2(y, prec): return gmpy.sqrt(y << prec)
def gmpy_sqrt_fixed(y, prec, shifted=True): if shifted: return gmpy.sqrt(y << prec) else: extra = 10 return gmpy.sqrt(y << (prec + 2 * extra)), extra