]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] add compiler hints in tick_is_expired()
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Sep 2008 07:00:24 +0000 (09:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Nov 2008 09:19:09 +0000 (10:19 +0100)
commit534c5a222496b1b6551f26e8205eff83629f974a
tree0e81a9c2b01b7dc020f9a6d8f9a7805f07b3a2ec
parent35374676796ac384261557d038ff9b0cbee84057
[OPTIM] add compiler hints in tick_is_expired()

adding those two unlikely() reduces the number of branches taken in
the common path and the size of the code.
include/common/ticks.h