Rounds the value length up to a given number of cache lines.
int d_roundup(length)
int length;
Item | Description |
---|---|
length | Specifies the size in bytes to be rounded. |
To maintain cache consistency, buffers must occupy entire cache lines. The d_roundup service helps provide that function by rounding the value length up to a given number in integer form.
The d_roundup service can be called from either the process or interrupt environment.