]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[CLEANUP] replace a few occurrences of (flags & X) && !(flags & Y)
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 11:18:24 +0000 (12:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Jan 2009 11:18:24 +0000 (12:18 +0100)
commitefc612c17b2320d09d26c36780faeb121ac66fe8
tree687c30ae98c377fa934f4354089e8f7af3f9bc11
parent68eac13217fa4f4015e30920644670087c0660b9
[CLEANUP] replace a few occurrences of (flags & X) && !(flags & Y)

This construct collapses into ((flags & (X|Y)) == X) when X is a
single-bit flag. This provides a noticeable code shrink and the
output code results in less conditional jumps.
src/session.c
src/stream_sock.c