DSPLIB User Guide
DSPLIB_blk_eswap_cn.cpp File Reference

Go to the source code of this file.

Functions

DSPLIB_STATUS DSPLIB_blk_eswap_init_cn (DSPLIB_kernelHandle handle, DSPLIB_bufParams1D_t *bufParamsIn, DSPLIB_bufParams1D_t *bufParamsOut, const DSPLIB_blk_eswap_InitArgs *pKerInitArgs)
 This function is the initialization function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_blk_eswap_init. More...
 
template<uint32_t implementationType>
void blk_eswap_compute (uint8_t *restrict srcPtr, uint8_t *restrict dstPtr, uint32_t blockSize)
 
template<>
void blk_eswap_compute< DSPLIB_UINT16 > (uint8_t *restrict srcPtr, uint8_t *restrict dstPtr, uint32_t blockSize)
 
template<>
void blk_eswap_compute< DSPLIB_UINT32 > (uint8_t *restrict srcPtr, uint8_t *restrict dstPtr, uint32_t blockSize)
 
template<>
void blk_eswap_compute< DSPLIB_UINT64 > (uint8_t *restrict srcPtr, uint8_t *restrict dstPtr, uint32_t blockSize)
 
template<typename dataType , uint32_t implementationType>
DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 This function is the main execution function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_blk_eswap_exec. More...
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint16_t, DSPLIB_UINT16 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint32_t, DSPLIB_UINT32 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint64_t, DSPLIB_UINT64 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int16_t, DSPLIB_UINT16 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int32_t, DSPLIB_UINT32 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int64_t, DSPLIB_UINT64 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< float, DSPLIB_UINT32 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 
template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< double, DSPLIB_UINT64 > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
 

Function Documentation

◆ DSPLIB_blk_eswap_init_cn()

DSPLIB_STATUS DSPLIB_blk_eswap_init_cn ( DSPLIB_kernelHandle  handle,
DSPLIB_bufParams1D_t bufParamsIn,
DSPLIB_bufParams1D_t bufParamsOut,
const DSPLIB_blk_eswap_InitArgs pKerInitArgs 
)

This function is the initialization function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_blk_eswap_init.

Parameters
[in]handle: Active handle to the kernel
[in]bufParamsIn: Pointer to the structure containing dimensional information of input buffer
[out]bufParamsOut: Pointer to the structure containing dimensional information of ouput buffer
[in]pKerInitArgs: Pointer to the structure holding init parameters
Returns
Status value indicating success or failure. Refer to DSPLIB_STATUS.

Definition at line 31 of file DSPLIB_blk_eswap_cn.cpp.

◆ blk_eswap_compute()

template<uint32_t implementationType>
void blk_eswap_compute ( uint8_t *restrict  srcPtr,
uint8_t *restrict  dstPtr,
uint32_t  blockSize 
)
inline

◆ blk_eswap_compute< DSPLIB_UINT16 >()

template<>
void blk_eswap_compute< DSPLIB_UINT16 > ( uint8_t *restrict  srcPtr,
uint8_t *restrict  dstPtr,
uint32_t  blockSize 
)
inline

Definition at line 44 of file DSPLIB_blk_eswap_cn.cpp.

◆ blk_eswap_compute< DSPLIB_UINT32 >()

template<>
void blk_eswap_compute< DSPLIB_UINT32 > ( uint8_t *restrict  srcPtr,
uint8_t *restrict  dstPtr,
uint32_t  blockSize 
)
inline

Definition at line 60 of file DSPLIB_blk_eswap_cn.cpp.

◆ blk_eswap_compute< DSPLIB_UINT64 >()

template<>
void blk_eswap_compute< DSPLIB_UINT64 > ( uint8_t *restrict  srcPtr,
uint8_t *restrict  dstPtr,
uint32_t  blockSize 
)
inline

Definition at line 80 of file DSPLIB_blk_eswap_cn.cpp.

◆ DSPLIB_blk_eswap_exec_cn()

template<typename dataType , uint32_t implementationType>
DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

This function is the main execution function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_blk_eswap_exec.

Parameters
[in]handle: Active handle to the kernel
[in]pIn: Pointer to buffer holding the input data
[out]pOut: Pointer to buffer holding the output data
Returns
Status value indicating success or failure. Refer to DSPLIB_STATUS.

Definition at line 108 of file DSPLIB_blk_eswap_cn.cpp.

◆ DSPLIB_blk_eswap_exec_cn< uint16_t, DSPLIB_UINT16 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint16_t, DSPLIB_UINT16 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< uint32_t, DSPLIB_UINT32 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint32_t, DSPLIB_UINT32 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< uint64_t, DSPLIB_UINT64 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< uint64_t, DSPLIB_UINT64 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< int16_t, DSPLIB_UINT16 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int16_t, DSPLIB_UINT16 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< int32_t, DSPLIB_UINT32 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int32_t, DSPLIB_UINT32 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< int64_t, DSPLIB_UINT64 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< int64_t, DSPLIB_UINT64 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< float, DSPLIB_UINT32 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< float, DSPLIB_UINT32 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)

◆ DSPLIB_blk_eswap_exec_cn< double, DSPLIB_UINT64 >()

template DSPLIB_STATUS DSPLIB_blk_eswap_exec_cn< double, DSPLIB_UINT64 > ( DSPLIB_kernelHandle  handle,
void *restrict  pIn,
void *restrict  pOut 
)