/* ======================================================================== */
/*  TEXAS INSTRUMENTS, INC.                                                 */
/*                                                                          */
/*  NAME                                                                    */
/*      DSPF_blk_eswap16 -- Endian-swap a block of 16-bit values            */
/*                                                                          */
/*  USAGE                                                                   */
/*       This routine has the following C prototype:                        */
/*                                                                          */
/*       void DSPF_blk_eswap16(                                             */
/*                        void *restrict x,                                 */
/*                        void *restrict r,                                 */
/*                        int            nx                                 */
/*                       )                                                  */
/*            x[nx]: Pointer to source data.                                */
/*            r[nx]: Pointer to destination array.                          */
/*            nx:    Number of shorts (16-bit values) to swap.              */
/*                                                                          */
/*  DESCRIPTION                                                             */
/*       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 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_ESWAP16_
#define DSPF_BLK_ESWAP16_ 1

void DSPF_blk_eswap16(void *restrict x, void *restrict r, int nx);

#endif
/* ======================================================================== */
/*  End of file: dspf_blk_eswap16.h                                         */
/* ------------------------------------------------------------------------ */
/*          Copyright (C) 2003 Texas Instruments, Incorporated.             */
/*                          All Rights Reserved.                            */
/* ======================================================================== */