libreplace: added likely()/unlikely() macros for gcc
commit6dfd10f476e0b74c36f73bfe17a68ca309c4c5ac
authorAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 2009 16:07:17 +0000 (17 09:07 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 2009 22:19:25 +0000 (17 15:19 -0700)
tree527782a69289aebb57d29ac41dcee0b1eacf01e9
parent9e49ad558eb9daaf4df13579211378d8ba01815e
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