maint: DECIMAL_DIGIT_ACCUMULATE uses stdckdint.h
commit23e26ed972fa157d5188d860545ea67037fc1935
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Nov 2023 04:35:56 +0000 (14 20:35 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 15 Nov 2023 04:38:24 +0000 (14 20:38 -0800)
treeadb35a187d1dcf31000eb0d0faa72e523ec58ea2
parent3e0d7787e67d4f732298d99eee772fc2631ddfb8
maint: DECIMAL_DIGIT_ACCUMULATE uses stdckdint.h

* src/system.h: Include <stdckdint.h>, since the new
DECIMAL_DIGIT_ACCUMULATE uses it.
Do not include stdckdint.h from files that also include system.h.
(DECIMAL_DIGIT_ACCUMULATE): Omit last arg, which is no longer needed.
Reimplement by using C23-style stdckdint.h’s ckd_mul and ckd_add,
as that’s more standard and is more likely to generate better code.
20 files changed:
src/cat.c
src/copy.c
src/csplit.c
src/dd.c
src/expand-common.c
src/kill.c
src/nl.c
src/numfmt.c
src/od.c
src/pinky.c
src/pr.c
src/set-fields.c
src/split.c
src/system.h
src/truncate.c
src/unexpand.c
src/uniq.c
src/uptime.c
src/wc.c
src/who.c