Re: [PATCH] df: new option: --total (-c) to produce grand total (in the
From:
Andreas Schwab
Subject:
Re: [PATCH] df: new option: --total (-c) to produce grand total (in the same way as du)
Date:
Tue, 02 Sep 2008 13:02:00 +0200
User-agent:
Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)
Jim Meyering <address@hidden> writes:
> Kamil Dudka <address@hidden> wrote:
>> +#define LOG_EQ(a,b) (((a)&&(b))||(!(a)&&!(b)))
>
> This can be written more simply as !((a) ^ (b))
Only if the operands are already boolean, and then you can just use a == b.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."