static inline void *get_top_aligned(void) { unsigned long top; /* Align down what is returned from cbmem_top(). */ top = (unsigned long)cbmem_top_cached(); top &= ~(DYN_CBMEM_ALIGN_SIZE - 1); return (void *)top; }
static inline uintptr_t get_top_aligned(void) { uintptr_t top; /* Align down what is returned from cbmem_top(). */ top = (uintptr_t)cbmem_top_cached(); top &= ~(DYN_CBMEM_ALIGN_SIZE - 1); return top; }