aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPaul Eggert2024-07-11 12:42:57 +0200
committerPaul Eggert2024-07-11 16:01:41 +0200
commit0c850df888ebb68096a82ab32089e809de591620 (patch)
treee5089808b1c6ec50609c0bee7d6a98ab8a18d531 /java
parent1c8e64a9536ed092af27279fa3f044cf031a4324 (diff)
downloademacs-0c850df888ebb68096a82ab32089e809de591620.tar.gz
emacs-0c850df888ebb68096a82ab32089e809de591620.zip
Optimize smallish mpz to native int conversion
* src/bignum.c (make_integer_mpz, mpz_to_intmax): If FASTER_BIGNUM, optimize the common case where the value fits in long int. In this case we can use mpz_fits_slong_p and mpz_get_si instead of looping with mpz_getlimbn. (mpz_to_uintmax): Likewise for unsigned long int and mpz_get_ui.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions