#include <rtl.h>
#define _declare_box8( \
pool, \ /* Name of the memory pool variable. */
size, \ /* Number of bytes in each block. */
cnt ) \ /* Number of blocks in the memory pool. */
U64 pool[((size+7)/8)*(cnt) + 2]
Description
The _declare_box8 macro declares an array of bytes that can
be used as a memory pool for allocation of fixed blocks with 8-byte
alignment.
The argument pool specifies the name of the memory pool
variable that is used by the memory block allocation routines. The
argument size specifies the size of the blocks, in bytes. The
argument cnt specifies the number of blocks required in the
memory pool.
The _declare_box8 macro is part of RL-RTX. The definition
is in rtl.h.
The macro rounds up the value of size to the next
multiple of 8 to give the blocks an 8-byte alignment.
The macro also declares an additional 16 bytes at the start of
the memory pool to store internal pointers and size information
about the memory pool.
Return Value
The _declare_box8 macro does not return any value.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.