00001 /*define for /src/memory/align.hpp*/ 00002 #ifndef _CORE_MEMORY_ALIGN_HPP 00003 #define _CORE_MEMORY_ALIGN_HPP 00004 00005 const uint32 PAGE_ALIGN = 0x1000; /*align on a page boundary*/ 00006 const uint32 STACK_ALIGN = 4; /*stack alignment*/ 00007 const uint32 NO_ALIGN = 1; /*byte alignment*/ 00008 00009 uint32 align_up (uint32 addr, uint32 alignment); /*align up from addr, with alignment*/ 00010 uint32 align_down (uint32 addr, uint32 alignment); /*align down an addr, with alignment*/ 00011 00012 #endif