#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.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.