This is the mail archive of the
mailing list for the GDB project.
Re: (len % 1) != 0
"Dave Korn" <firstname.lastname@example.org> writes:
> On 19 February 2008 16:30, Sheng-Liang Song wrote:
>> (len & 1) != 0 <=> (len % 2) != 0
> That would have the advantage of not requiring a divide operation :)
The divide operation is already required and can be combined with the
And this is by no means performance critical.
Andreas Schwab, SuSE Labs, email@example.com
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"Premature optimization is the root of all evil."