]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/c: Add abs_diff macro
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Nov 2021 18:26:13 +0000 (13:26 -0500)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Dec 2021 12:35:59 +0000 (13:35 +0100)
commitadc21ee18fb8af79adaf9d4254ab0f935e38f784
treee56558e3d8c9a1b39e20e53afa44151352e6cfb3
parent9a1b1f82b75fe0cbc9d9b356fe1f7c62be45e635
include/c: Add abs_diff macro

This macro calculates abs(a - b). It is especially useful for unsigned
numbers.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
include/c.h