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
1 parent ed81f3e commit 0146ae64c006956a281865f5688858d4846c781e
@Sandrine Bailleux Sandrine Bailleux authored on 16 Jun 2016
Showing 1 changed file
View
include/lib/utils.h