branch probability hinting
Greg McGary
greg@mcgary.org
Wed Feb 28 15:01:00 GMT 2001
"Frank Ch. Eigler" <fche@redhat.com> writes:
> One is used thusly (and the other, vice versa):
> [ ... ]
> if UNLIKELY(error) {
Cool. Only one nit to pick:
Please don't encourage people to write code that appears to be
syntactically invalid. I know that the parens are part of the
expansion of LIKELY & UNLIKELY, but lexical tools such as indent get
confused. I'd rather see uses like this:
if (UNLIKELY(error)) {
Greg
More information about the Sid
mailing list