alignment.cpp 303 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "pls/internal/base/alignment.h"

namespace pls {
namespace internal {
namespace base {
namespace alignment {

char *next_alignment(char *pointer, size_t alignment) {
  return reinterpret_cast<char *>(next_alignment(reinterpret_cast<system_details::pointer_t >(pointer), alignment));
}

}
}
}
}