netty/netty — pull request #2328 by jakobbuchgraber (2014-03-17 15:43:21+00:00)
Title: Bit tricks to check for and calculate power of two.

Motivation:
I was studying the code and thought this was simpler and easier to
understand.

Modifications:
Replaced the for loop and if conditions, with a simple implementation.

Result:
Code is easier to understand.