Change #238865
Category | gcoreutils |
Changed by | Paul Eggert <eggert | @cs.ucla.edu>
Changed at | Thu 10 Jul 2025 02:12:40 |
Repository | git://git.savannah.gnu.org/coreutils.git |
Project | gcoreutils |
Branch | master |
Revision | 033a50af8ba71f521b638d88309bd15421059e83 |
Comments
factor: avoid an mpz init+clear * src/factor.c (mp_factor_insert_ui): Rename fom mp_factor_insert_ui, and change arg type from unsigned long int to mp_limb_t. All uses changed. This avoids creating and freeing a small mpz_t. (mp_factor_using_division): Add a static assert requiring that that mp_limb_t be wide enough, which it should be (and is in standard GMP).
Changed files
- src/factor.c