Re: [PATCH] xmalloc.c: add unlikely ()

2011-05-13 Thread Ulrich Drepper
On Fri, May 13, 2011 at 22:49, Marek Polacek wrote: > Even though this should be handled by the gcc's tree_estimate_probability, Exactly because gcc will always handle it already like this I didn't add (un)likely. ___ elfutils-devel mailing list elfutil

[PATCH] xmalloc.c: add unlikely ()

2011-05-13 Thread Marek Polacek
Even though this should be handled by the gcc's tree_estimate_probability, adding the unlikely () to conditions which are almost never true shouldn't hurt either. Yes, it compiles. OK to apply? 2011-05-14 Marek Polacek * xmalloc.c (xmalloc, xcalloc, xrealloc): Add unlikely (). --- e