Open HardyChina opened 5 years ago
// 递归求一半的值 double result = powerWithUnsignedExponent(base, exponent >> 2); 这里应该是右移一位,改为 double result = powerWithUnsignedExponent(base, exponent >> 1);
// 递归求一半的值 double result = powerWithUnsignedExponent(base, exponent >> 2); 这里应该是右移一位,改为 double result = powerWithUnsignedExponent(base, exponent >> 1);