]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: simplify comparisons
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 May 2022 02:17:12 +0000 (19:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 May 2022 02:30:55 +0000 (19:30 -0700)
commit5864e8f919c3dae827016ac1a78544db90403b6d
treef2fe230d81ec8b9d6fe256ff5e0b6caca7fff087
parent9f2fa50748e52046ea3b99bd469f846ef8827272
maint: simplify comparisons

* src/comm.c (compare_files):
* src/join.c (keycmp):
* src/ls.c (off_cmp):
* src/ptx.c (compare_words, compare_occurs):
* src/set-fields.c (compare_ranges):
Prefer ((a > b) - (a < b)) to variants like (a < b ? -1 : a > b)
as it’s typically faster these days.
src/comm.c
src/join.c
src/ls.c
src/ptx.c
src/set-fields.c