Esempio n. 1
0
 // This alloc_top will insure that the object is aligned based on
 // the alignment given.
 void * alloc_top(size_t size, size_t align) 
 {loop:
   top -= size;
   align_top(align);
   if (top < bottom) {new_chunk(); goto loop;}
   return top;
 }
Esempio n. 2
0
 inline auto align_right_top(Subject&& subject)
 {
    return align_right(align_top(std::forward<Subject>(subject)));
 }
Esempio n. 3
0
 inline auto align_center_top(Subject&& subject)
 {
    return align_center(align_top(std::forward<Subject>(subject)));
 }