Exemplo n.º 1
0
 // This alloc_bottom will insure that the object is aligned based on the
 // alignment given.
 void * alloc_bottom(size_t size, size_t align) 
 {loop:
   align_bottom(align);
   byte * tmp = bottom;
   bottom += size;
   if (bottom > top) {new_chunk(); goto loop;}
   return tmp;
 }
Exemplo n.º 2
0
 inline auto align_right_bottom(Subject&& subject)
 {
    return align_right(align_bottom(std::forward<Subject>(subject)));
 }
Exemplo n.º 3
0
 inline auto align_center_bottom(Subject&& subject)
 {
    return align_center(align_bottom(std::forward<Subject>(subject)));
 }