5#include <l4/sys/consts.h>
20 return val & ((~T(0)) << order);
34 return (val + (T(1) << order) - T(1)) & ((~T(0)) << order);
38 constexpr T trunc_page(T val)
44 constexpr T round_page(T val)
51 max_order(
unsigned char order, T addr,
52 T min_addr, T max_addr,
62 if (base + (T(1) << (order + 1)) - T(1) > max_addr - T(1))
65 mask = ~((~T(0)) << (order + 1));
66 if (hotspot == ~T(0) || ((addr ^ hotspot) & mask))
#define L4_PAGESHIFT
Size of a page, log2-based.
L4 low-level kernel interface.
constexpr T round_order(T val, unsigned char order)
Round a value up so the given number of lsb is zero.
constexpr T trunc_order(T val, unsigned char order)
Round a value down so the given number of lsb is zero.