32 template <
typename dataType,
int32_t dataIn>
38 uint32_t blockSize = pKerPrivArgs->
blockSize;
41 printf(
"Enter DSPLIB_negate_exec_cn\n");
44 dataType *pInLocal = (dataType *) pIn;
45 dataType *pOutLocal = (dataType *) pOut;
48 printf(
"Enter pInLocal %p pOut %p\n", pInLocal, pOut);
53 for (int32_t counter = 0; counter < blockSize; counter++) {
57 printf(
"counter %d a %f\n", counter, a);
61 if (a == std::numeric_limits<dataType>::lowest()){
62 (*pOutLocal++) = std::numeric_limits<dataType>::max();
DSPLIB_STATUS DSPLIB_negate_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....
template DSPLIB_STATUS DSPLIB_negate_exec_cn< int8_t, DSPLIB_INT8 >(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_negate_exec_cn< int16_t, DSPLIB_INT16 >(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_negate_exec_cn< int32_t, DSPLIB_INT32 >(DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pOut)
Header file for kernel's internal use. For the kernel's interface, please see DSPLIB_negate.
DSPLIB_STATUS_NAME
The enumeration of all status codes.
void * DSPLIB_kernelHandle
Handle type for DSPLIB operations.
Structure that is reserved for internal use by the kernel.
int32_t blockSize
Size of input buffer for different batches DSPLIB_negate_init that will be retrieved and used by DSPL...