Introduce round_up/down() macros
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Thu, 16 Jun 2016 14:05:39 +0000 (15:05 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Fri, 8 Jul 2016 13:37:11 +0000 (14:37 +0100)
commit0146ae64c006956a281865f5688858d4846c781e
tree305287d0f6e4fcf349b7e0382905bdbd78de8b4b
parented81f3ebbfb5abc7d0d250fbc71f297a904d71ae
Introduce round_up/down() macros

This patch introduces the round_up() and round_down() macros,
which round up (respectively down) a value to a given boundary.
The boundary must be a power of two.

Change-Id: I589dd1074aeb5ec730dd523b4ebf098d55a7e967
include/lib/utils.h