]> git.ipfire.org Git - thirdparty/coreutils.git/commit
od: omit some duplicate code
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Jun 2025 00:08:28 +0000 (17:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jun 2025 04:00:41 +0000 (21:00 -0700)
commit56aa549a06eeaa39295ccbf8424bcdbf9b60b99a
tree382aa0d8708958020f9ea0cd5b14580d51174ede
parent3ad59e19bc289b41c7998f91eda424672b2c8497
od: omit some duplicate code

On x86-64 (for example) print_long, print_long_long, and
print_intmax all behave identically, so give GCC enough info so
that it generates code for just one of these functions.
* src/od.c (enum size_spec): Arrange for enum values to
be the same if they represent types that behave the same.
(width_bytes, ISPEC_TO_FORMAT, decode_one_format):
Match the enum size_spec changes.
src/od.c