]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: prefer non-macros
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Jun 2025 05:47:36 +0000 (22:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
commit258392808c8c0a6782a4b4d49cb46f47781e5ab2
tree36310e4f44ef42a8e28ddd0ef65a52e2e1c0ab99
parentfe136a980074ee53601980ef92ddc553547982a0
factor: prefer non-macros

Use something other than a macro when that is easy and won’t hurt
performance.
* src/factor.c (__ll_B, __ll_lowpart, _ll_highpart) [!USE_LONGLONG_H]:
(MAX_NFACTS, highbit_to_mask, factor_insert, PRIMES_PTAB_ENTRIES):
Make these enums, or constants, or static functions instead of macros.
(highbit_to_mask): Rename from HIGHBIT_TO_MASK.  All uses changed.
src/factor.c