| Q D E V _ H L P _ Q U I C K F I L L ( )
| | | | | SOURCE: qdev_macros.txt 1.16 (12/09/2014) English INDEP - PUBLIC
----------------------------------------------------------------------------
NAME
QDEV_HLP_QUICKFILL() - Wordsize dependant memory filler.
SYNOPSIS
QDEV_HLP_QUICKFILL(ptr, t, val, size);
QDEV_HLP_QUICKFILL
(void *, <type>, <value>, <sizeof buf>);
FUNCTION
This macro allows to inline sort of 'memset()', but all
is based upon word size. Effectively the buffer must be
multiple of 't', but 'size' is in bytes!
INPUTS
ptr - Address of the buffer that will be filled with
'val'.
t - Type of the datatype(BYTE, WORD, LONG, QUAD,...)
val - Value that is of word width.
size - Size of the buffer to be filled with 'val' words.
RETURNS
No output.
BASES
None.
NOTES
You must be absolutely sure that what you specify is of
the right size. In other words buffer must be multiple
of sizeof(<type>)!
SEE ALSO
QDEV_HLP_LCOPYMEM()
EXAMPLE
...
LONG table[32];
QDEV_HLP_QUICKFILL(
&table[0], LONG, 0x7FFFFFFE, sizeof(table));
...
BUGS
None known.
----------------------------------------------------------------------------
| |
| |