There were two bugs here:
- For 64 bit values, this did not properly round up.
- The macro rounded to the power of 2 less than value, not to the power
of 2 greater than value.
(cherry picked from commit 27047faf28)
Change-Id: Idf1ec67854e1eb423704e599ae1c6b674d36618d