]> git.eshelyaron.com Git - emacs.git/commit
New FASTER_BIGNUM macro to test slow-path code
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Jul 2024 10:27:36 +0000 (12:27 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 11 Jul 2024 14:39:49 +0000 (16:39 +0200)
commit3670a282710b907543910a6de8e2732c1ef9da77
tree44a6e36cb5ef6bca64ace69b65989b0c27f4996f
parente8f0c500d19b963417c7cfc0a4dc3f393a8354e9
New FASTER_BIGNUM macro to test slow-path code

* src/bignum.h (FASTER_BIGNUM): New macro.
(mpz_set_intmax, mpz_set_uintmax): Optimize only if FASTER_BIGNUM.
Also, use ckd_add to test for overflow instead of doing it by hand.

(cherry picked from commit 1c8e64a9536ed092af27279fa3f044cf031a4324)
src/bignum.h