Collaboration diagram for DSP_blk_eswap16:
void | DSP_blk_eswap16 (void *restrict src, void *restrict dst, int n_hwords) |
void DSP_blk_eswap16 | ( | void *restrict | src, | |
void *restrict | dst, | |||
int | n_hwords | |||
) |
The data in the x[] array is endian swapped, meaning that the byte-order of the bytes within each half-word of the r[] array is reversed. This facilitates moving big-endian data to a little-endian system or vice-versa. When the r pointer is non-NULL, the endian-swap occurs out-of-place, similar to a block move. When the r pointer is NULL, the endian-swap occurs in-place, allowing the swap to occur without using any additional storage.
src | = Source data, must be double-word aligned. | |
dst | = Destination data, must be double-word aligned. | |
n_hwords | = Number of 16-bit elements to swap. |