libreplace: added likely()/unlikely() macros for gcc
commitd27140ab763a1bc5e831fe8416869ff6c875452f
authorAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 2009 16:07:17 +0000 (17 09:07 -0700)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 Sep 2009 04:52:23 +0000 (17 21:52 -0700)
tree9853a20991f711475bb6d97c3b39f282a28c13b1
parent44674efc818baaad527c73d5a0e9f3d05b76d807
libreplace: added likely()/unlikely() macros for gcc

These macros allow the compile to better optimise code that has a lot
of if statements. I particularly want to use this for our low level
generated NDR code.
lib/replace/replace.h