• Sandrine Bailleux's avatar
    Introduce round_up/down() macros · 0146ae64
    Sandrine Bailleux authored
    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
    0146ae64
utils.h 2.33 KB