/* ======================================================================== */ /* TEXAS INSTRUMENTS, INC. */ /* */ /* NAME */ /* DSPF_blk_eswap64 -- Endian-swap a block of 64-bit values */ /* */ /* USAGE */ /* This routine has the following C prototype: */ /* */ /* void DSPF_blk_eswap64( */ /* void *restrict x, */ /* void *restrict r, */ /* int nx */ /* ) */ /* x[nx]: Pointer to source data. */ /* r[nx]: Pointer to destination array. */ /* nx: Number of doubles (64-bit values) to swap. */ /* */ /* DESCRIPTION */ /* The data in the x[] array is endian swapped, meaning that the */ /* byte-order of the bytes within each double-word of the r[] array */ /* is reversed. This is meant to facilitate 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. */ /* */ /* ------------------------------------------------------------------------ */ /* Copyright (c) 2003 Texas Instruments, Incorporated. */ /* All Rights Reserved. */ /* ======================================================================== */ #ifndef DSPF_BLK_ESWAP64_ #define DSPF_BLK_ESWAP64_ 1 void DSPF_blk_eswap64(void *restrict x, void *restrict r, int nx); #endif /* ======================================================================== */ /* End of file: dspf_blk_eswap64.h */ /* ------------------------------------------------------------------------ */ /* Copyright (C) 2003 Texas Instruments, Incorporated. */ /* All Rights Reserved. */ /* ======================================================================== */