This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Fri, Apr 21, 2000 at 10:19:02AM -0700, Ulrich Drepper wrote: > In glibc this means __builtin_expect should be used everywhere the > results of comparisons etc is statically predictable. At the very > least it should be used for error handling. E.g.; > > ptr = malloc (size); > if (ptr == NULL) Note that gcc's built in estimate_probabilities function is supposed to get this right -- eq with NULL predicted false. It doesn't hurt to mark it anyway though... r~
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |