Lines Matching defs:value
91 * The round_up() macro rounds up a value to the given boundary in a
94 * greater than or equal to value.
96 * round_down() is similar but rounds the value down instead.
98 #define round_boundary(value, boundary) \
99 ((__typeof__(value))((boundary) - 1))
101 #define round_up(value, boundary) \
102 ((((value) - 1) | round_boundary(value, boundary)) + 1)
104 #define round_down(value, boundary) \
105 ((value) & ~round_boundary(value, boundary))
114 * Round up a value to align with a given size and
116 * The rounduped value is '*res',
131 * The rounduped value is '*res',
143 * Helper macro to ensure a value lies on a given boundary.
145 #define is_aligned(value, boundary) \
146 (round_up((uintptr_t) value, boundary) == \
147 round_down((uintptr_t) value, boundary))
189 * be used as a 64-bit pointer, the value of the linker symbol must also be