mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-bigint (mpz_pow): combine mpz_init and mpz_set
This commit is contained in:
@@ -1134,8 +1134,7 @@ mpz_pow(mrb_state *mrb, mpz_t *zz, mpz_t *x, mrb_int e)
|
||||
return;
|
||||
}
|
||||
|
||||
mpz_init(mrb, &t);
|
||||
mpz_set(mrb, &t, x);
|
||||
mpz_init_set(mrb, &t, x);
|
||||
for (;!(mask &e); mask>>=1)
|
||||
;
|
||||
mask>>=1;
|
||||
|
||||
Reference in New Issue
Block a user