diff options
| author | tompng <tomoyapenguin@gmail.com> | 2024-03-17 23:03:38 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-18 13:52:27 +0900 |
| commit | 0ff2c7fe6fbd663ebffdbbd09c44b810cdf492d2 (patch) | |
| tree | 47f0cb5a9f291f6381c0c2999b351ed5ebac899c /numeric.c | |
| parent | dcfbe36cb552ca70df82b3aeb346045733ade62e (diff) | |
Faster Integer.sqrt for large bignum
Integer.sqrt uses Newton's method.
This pull request reduces the precision which was unnecessarily high in each calculation step.
Diffstat (limited to 'numeric.c')
| -rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5169,7 +5169,7 @@ fix_rshift(long val, unsigned long i) * */ -static VALUE +VALUE rb_int_rshift(VALUE x, VALUE y) { if (FIXNUM_P(x)) { |
