summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fadc8a2)
raw | patch | inline | side by side (parent: fadc8a2)
author | Yimin Zhang <a0216607@ti.com> | |
Wed, 14 Sep 2016 14:17:41 +0000 (10:17 -0400) | ||
committer | Yimin Zhang <a0216607@ti.com> | |
Wed, 14 Sep 2016 14:17:41 +0000 (10:17 -0400) |
45 files changed:
index df538ebea895e8ff2bfde38fc390ee68eb6fb8c3..849ed3fe341cd9d0a509d4bf3c713b91a6591642 100644 (file)
#if 1
if(temp==NULL) {
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
#endif
p.edmaState = (*p.fftcout.ecpyRequest)(temp, 256*6*sizeof(uint32_t));
index 464b5366b5d659458a90e107f4a0793b7cd15fe9..83d6ef96b0dbddcf63a368c319d95059d6d488a7 100644 (file)
/* FFT error codes */
enum {
- FFT_NOERR = 0,
- FFT_TYPE_ERR = 1
+ FFT_NOERR = 0,
+ FFT_ERROR = 1
};
/* FFT error codes */
void *fftGetMemHandle();
int fft_Init(void *sfast_buf_base, size_t sfast_buf_size);
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+ const int cols, double *restrict y);
+static void DSPF_dp_mat_trans_cplx_r2r(const double *restrict x, const int rows,
const int cols, double *restrict y);
#endif /* FFT_COMMON_H_ */
diff --git a/ti/fftlib/src/fft_dp_1d_c2c/fft_dp_1d_c2c.c b/ti/fftlib/src/fft_dp_1d_c2c/fft_dp_1d_c2c.c
index 65c9aba9b7ee3c8f6dceea065391a047f80d842a..b2b6b34223283d863d1583803f0fb59cc7a976f6 100644 (file)
#include <ti/fftlib/src/common/fft/fft_dp_mixed_bs.h>
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_dp_1d_c2c_batch/fft_dp_1d_c2c_batch.c b/ti/fftlib/src/fft_dp_1d_c2c_batch/fft_dp_1d_c2c_batch.c
index 9557349519162e46c400d86ef46acf2941b28207..3fd0767bbf15be3e643d7c59df3add3abe326dba 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.dp_1d_c2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/fft_dp_1d_r2c/fft_dp_1d_r2c.c b/ti/fftlib/src/fft_dp_1d_r2c/fft_dp_1d_r2c.c
index 75ec64d64ea280e72e0a97e444ff925cf61a1800..d22d057ffef2214c50a8e4df89b485f213098d42 100644 (file)
#include <ti/fftlib/src/common/fft/fft_dp_mixed_bs.h>
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_dp_1d_r2c_batch/fft_dp_1d_r2c_batch.c b/ti/fftlib/src/fft_dp_1d_r2c_batch/fft_dp_1d_r2c_batch.c
index 046bc0f3b23760d76e42afb959bae1f9c96ff660..50f186fe544310613c944484cb57557654dcf64f 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.dp_1d_r2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/fft_dp_2d_c2c/fft_dp_2d_c2c.c b/ti/fftlib/src/fft_dp_2d_c2c/fft_dp_2d_c2c.c
index 3338abc1a8fac0571c8f9c9d4fc307a95d2ab7d3..8b9c1a478ae742e235fd156d07abe99bb2f6f4a6 100644 (file)
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_dp_2d_r2c/fft_dp_2d_r2c.c b/ti/fftlib/src/fft_dp_2d_r2c/fft_dp_2d_r2c.c
index 5a0041ebc4749ca5174126a2a5638d7995d0f158..c7651ef34d7a177878c7f0e5bbb97d85156cce25 100644 (file)
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_dp_3d_c2c/fft_dp_3d_c2c.c b/ti/fftlib/src/fft_dp_3d_c2c/fft_dp_3d_c2c.c
index e390c29bc5c7f60e086b2094a1016a18a4e3a822..6ed92ccc1f35bb97d3c40aecafba24b990dbb3b8 100644 (file)
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_dp_3d_r2c/fft_dp_3d_r2c.c b/ti/fftlib/src/fft_dp_3d_r2c/fft_dp_3d_r2c.c
index ec8af4858c0668a0bf763dd9858545c68eab9c3c..45a1a6a8b59426da9fa872a99f0a76488a328eab 100644 (file)
#include <ti/dsplib/src/DSPF_dp_fftDPxDP/DSPF_dp_fftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/fft_omp_dp_1d_c2c/fft_omp_dp_1d_c2c.c b/ti/fftlib/src/fft_omp_dp_1d_c2c/fft_omp_dp_1d_c2c.c
index 6998308af88a173f4d31a1dfb2051b62f3117e14..5797a1ff937826c7c7009ce9a4e4206072f90d66 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/fft_omp_dp_1d_r2c/fft_omp_dp_1d_r2c.c b/ti/fftlib/src/fft_omp_dp_1d_r2c/fft_omp_dp_1d_r2c.c
index ceeaee5e6cf78bccfd3ecd9ee45177d0cf01f1c0..8f4c73d3c27948c05fdccfa27b064b9d5a52139a 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/fft_omp_dp_2d_c2c/fft_omp_dp_2d_c2c.c b/ti/fftlib/src/fft_omp_dp_2d_c2c/fft_omp_dp_2d_c2c.c
index 1dcf03c87310afa110394f09c7a26e42331aabd7..c610d0a4e6c23c4042dd80d1470babbc0724756a 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.dp_2d_c2c_e.para1.use_bs) || (u.dp_2d_c2c_e.para2.use_bs)){
diff --git a/ti/fftlib/src/fft_omp_dp_2d_r2c/fft_omp_dp_2d_r2c.c b/ti/fftlib/src/fft_omp_dp_2d_r2c/fft_omp_dp_2d_r2c.c
index a5d341f21ce45b4c3d04f4e0d7ddf39d248ecd62..499ad83ea8c623b67b1a2767bf4b65ca0404c623 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.dp_2d_r2c_e.para1.use_bs) || (u.dp_2d_r2c_e.para2.use_bs)){
diff --git a/ti/fftlib/src/fft_omp_dp_3d_c2c/fft_omp_dp_3d_c2c.c b/ti/fftlib/src/fft_omp_dp_3d_c2c/fft_omp_dp_3d_c2c.c
index 43e16ef36bcacc2f3e316c9fa167fef265d8173b..9d6c62746dad206faf3a4d4c4417aa947e68bf91 100644 (file)
#include <ti/runtime/openmp/omp.h>\r
#include <ti/libarch/libarch.h>
\r
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,\r
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,\r
const int cols, double *restrict y)\r
{\r
int i, j = 0;\r
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {\r
#endif\r
printf("Memory allocation error!\n");\r
- return;\r
+ return FFT_ERROR;\r
}\r
\r
if((u.dp_3d_c2c_e.para1.use_bs == 1) || (u.dp_3d_c2c_e.para2.use_bs == 1) || (u.dp_3d_c2c_e.para3.use_bs == 1))\r
diff --git a/ti/fftlib/src/fft_omp_dp_3d_r2c/fft_omp_dp_3d_r2c.c b/ti/fftlib/src/fft_omp_dp_3d_r2c/fft_omp_dp_3d_r2c.c
index 771ec81b2b5bad409933d4a26507d37b7c563e0a..f0f40c709ff95c1b2081ed57a91c8287ba8b75ac 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if((u.dp_3d_r2c_e.para1.use_bs == 1) || (u.dp_3d_r2c_e.para2.use_bs == 1) || (u.dp_3d_r2c_e.para3.use_bs == 1))
diff --git a/ti/fftlib/src/fft_omp_sp_1d_c2c/fft_omp_sp_1d_c2c.c b/ti/fftlib/src/fft_omp_sp_1d_c2c/fft_omp_sp_1d_c2c.c
index 9b9072677bb03452e8965186f523f3c7ef4e8c74..1fd315447ab24480e3a4096cf72dce044fbe5dd4 100644 (file)
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/fft_omp_sp_1d_r2c/fft_omp_sp_1d_r2c.c b/ti/fftlib/src/fft_omp_sp_1d_r2c/fft_omp_sp_1d_r2c.c
index bc3cf545e2cf9fb8f5d117f60d6c6d2d3e2fc430..2d2f41a76ef60d231debcabdbe6a41dc81010a2d 100644 (file)
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/fft_omp_sp_2d_c2c/fft_omp_sp_2d_c2c.c b/ti/fftlib/src/fft_omp_sp_2d_c2c/fft_omp_sp_2d_c2c.c
index 8a6fc39b7a4992767e9b723d9258f98e9b61cf5c..1ab07e85965dcabc39b133be0540a65e93582743 100644 (file)
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.sp_2d_c2c_e.para1.use_bs) || (u.sp_2d_c2c_e.para2.use_bs)){
diff --git a/ti/fftlib/src/fft_omp_sp_2d_r2c/fft_omp_sp_2d_r2c.c b/ti/fftlib/src/fft_omp_sp_2d_r2c/fft_omp_sp_2d_r2c.c
index b2a02b97f7997af27cb19d07538fa91ad5ebf416..1434f5be8f2bed5eecb786cfe8d485e3b88b0d18 100644 (file)
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
edmaLocal = (FFT_EDMA_Struct *)edmaState;
diff --git a/ti/fftlib/src/fft_omp_sp_3d_c2c/fft_omp_sp_3d_c2c.c b/ti/fftlib/src/fft_omp_sp_3d_c2c/fft_omp_sp_3d_c2c.c
index ad8542945ea502de613776c40d809a6d1d65e2c4..b07dd75fcd268f6d533303085227bf867a1f304a 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/fft_omp_sp_3d_r2c/fft_omp_sp_3d_r2c.c b/ti/fftlib/src/fft_omp_sp_3d_r2c/fft_omp_sp_3d_r2c.c
index 46e393f57e88e7b215c61cb8c885c9496c801f34..8babacc82d6ff310429836acf2d9888f8c191476 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if((u.sp_3d_r2c_e.para1.use_bs == 1) || (u.sp_3d_r2c_e.para2.use_bs == 1) || (u.sp_3d_r2c_e.para3.use_bs == 1))
diff --git a/ti/fftlib/src/fft_sp_1d_c2c_batch/fft_sp_1d_c2c_batch.c b/ti/fftlib/src/fft_sp_1d_c2c_batch/fft_sp_1d_c2c_batch.c
index 60277f60ca9e8a96c2a6290a52087268d7f5f610..5eea260de9be7a66f4ef3be66bb0de3d8a0799c4 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.sp_1d_c2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/fft_sp_1d_r2c_batch/fft_sp_1d_r2c_batch.c b/ti/fftlib/src/fft_sp_1d_r2c_batch/fft_sp_1d_r2c_batch.c
index f34caf98bf291060d2316b39f24e313c8679fef0..1f28a1b245d74f8f3165317de06c4937e598751a 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.sp_1d_r2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/ifft_dp_1d_c2c/ifft_dp_1d_c2c.c b/ti/fftlib/src/ifft_dp_1d_c2c/ifft_dp_1d_c2c.c
index acda1d928e825c52bc88ec26a52cd5b831cdb64d..c44793eda5fa62ee4a92a497c7f148f7f27d00f5 100644 (file)
#include <ti/fftlib/src/common/ifft/ifft_dp_mixed_bs.h>
#include <ti/dsplib/src/DSPF_dp_ifftDPxDP/DSPF_dp_ifftDPxDP.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/ifft_dp_1d_c2c_batch/ifft_dp_1d_c2c_batch.c b/ti/fftlib/src/ifft_dp_1d_c2c_batch/ifft_dp_1d_c2c_batch.c
index 645a05d27eff26da3a85a0ce0f867dffe71a8912..af8fb8e5aec1a3f382dfe49c2009ff2c4d0f369b 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.dp_1d_c2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/ifft_dp_1d_c2r_batch/ifft_dp_1d_c2r_batch.c b/ti/fftlib/src/ifft_dp_1d_c2r_batch/ifft_dp_1d_c2r_batch.c
index caab668f7215197029e996ea2b2bf66d4a0df2a8..d03ada263967ea933025b6b1ea4ad98044c59b7c 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.dp_1d_c2r_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/ifft_dp_2d_c2c/ifft_dp_2d_c2c.c b/ti/fftlib/src/ifft_dp_2d_c2c/ifft_dp_2d_c2c.c
index 6c4c9cedc01a22b650f241a67e9991a1387f0dc7..043cda2c92e44809fb3b619a4d77ec4a0ba85e98 100644 (file)
#include <ti/dsplib/src/DSPF_dp_ifftDPxDP/DSPF_dp_ifftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/ifft_dp_2d_c2r/ifft_dp_2d_c2r.c b/ti/fftlib/src/ifft_dp_2d_c2r/ifft_dp_2d_c2r.c
index 62b8f43f96311a3a994ccedc802ef7fd2019cd61..d33be55e23299495ffed792e2a505670ce748f18 100644 (file)
#include <ti/dsplib/src/DSPF_dp_ifftDPxDP/DSPF_dp_ifftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
}
}
-static DSPF_dp_mat_trans_cplx_r2r(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx_r2r(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/ifft_dp_3d_c2c/ifft_dp_3d_c2c.c b/ti/fftlib/src/ifft_dp_3d_c2c/ifft_dp_3d_c2c.c
index ee9eb8d5b8a03bc380d364c4ff87d67e612d7d22..2310cc21d5071ddf30ee49551b0eec76f1ce0ec1 100644 (file)
#include <ti/dsplib/src/DSPF_dp_ifftDPxDP/DSPF_dp_ifftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/ifft_dp_3d_c2r/ifft_dp_3d_c2r.c b/ti/fftlib/src/ifft_dp_3d_c2r/ifft_dp_3d_c2r.c
index 64d9367298185ea441cfc661ea8fa326a07cb0fd..d5a549e1042531f1a769ec0393faff6284785472 100644 (file)
#include <ti/dsplib/src/DSPF_dp_ifftDPxDP/DSPF_dp_ifftDPxDP.h>
#include <ti/fftlib/src/common/fft_edma.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
}
}
-static DSPF_dp_mat_trans_cplx_r2r(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx_r2r(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
diff --git a/ti/fftlib/src/ifft_omp_dp_1d_c2c/ifft_omp_dp_1d_c2c.c b/ti/fftlib/src/ifft_omp_dp_1d_c2c/ifft_omp_dp_1d_c2c.c
index e62a27c9618a3afa61904398bfe4905406672d26..d4c35b31bc47f180da0dc00a7aacd2ea1c5096be 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/ifft_omp_dp_1d_c2r/ifft_omp_dp_1d_c2r.c b/ti/fftlib/src/ifft_omp_dp_1d_c2r/ifft_omp_dp_1d_c2r.c
index 6e855fbe0b1abfcea762ba43870c34888c4df4d7..c8e9687cd97fd771dc5ea1ba85094df67c095773 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/ifft_omp_dp_2d_c2c/ifft_omp_dp_2d_c2c.c b/ti/fftlib/src/ifft_omp_dp_2d_c2c/ifft_omp_dp_2d_c2c.c
index eba86d92a486c8f37bebaa540fce43eebae3b025..addb698db41b2ac03f2b6b544aba6cf0f933921a 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.dp_2d_c2c_e.para1.use_bs) || (u.dp_2d_c2c_e.para2.use_bs)){
diff --git a/ti/fftlib/src/ifft_omp_dp_2d_c2r/ifft_omp_dp_2d_c2r.c b/ti/fftlib/src/ifft_omp_dp_2d_c2r/ifft_omp_dp_2d_c2r.c
index f214fdb8bf4137960bb3d2d4962914869a78ea58..bc2e2209bec36a4fe0e97ed2e8ba32c7e76a4b9f 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.dp_2d_c2r_e.para1.use_bs) || (u.dp_2d_c2r_e.para2.use_bs)){
diff --git a/ti/fftlib/src/ifft_omp_dp_3d_c2c/ifft_omp_dp_3d_c2c.c b/ti/fftlib/src/ifft_omp_dp_3d_c2c/ifft_omp_dp_3d_c2c.c
index 9ecdc9f61bf14338573055a25929de7ee58f3ee2..811444d9cc9c84c40a2c7ec2ac158be33a482109 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if((u.dp_3d_c2c_e.para1.use_bs == 1) || (u.dp_3d_c2c_e.para2.use_bs == 1) || (u.dp_3d_c2c_e.para3.use_bs == 1))
diff --git a/ti/fftlib/src/ifft_omp_dp_3d_c2r/ifft_omp_dp_3d_c2r.c b/ti/fftlib/src/ifft_omp_dp_3d_c2r/ifft_omp_dp_3d_c2r.c
index b629be47f8d7044661d115ff17f05765494ff9d4..b288c13b1948c5bf64c5aa979942fe06a488cc8d 100644 (file)
#include <ti/runtime/openmp/omp.h>
#include <ti/libarch/libarch.h>
-static DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
+static void DSPF_dp_mat_trans_cplx(const double *restrict x, const int rows,
const int cols, double *restrict y)
{
int i, j = 0;
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if((u.dp_3d_c2r_e.para1.use_bs == 1) || (u.dp_3d_c2r_e.para2.use_bs == 1) || (u.dp_3d_c2r_e.para3.use_bs == 1))
diff --git a/ti/fftlib/src/ifft_omp_sp_1d_c2c/ifft_omp_sp_1d_c2c.c b/ti/fftlib/src/ifft_omp_sp_1d_c2c/ifft_omp_sp_1d_c2c.c
index bc65754b69009ab9e398cd95eb781062f73223ba..fe95a190df0f81f487b6333246c84688c4f14967 100644 (file)
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/ifft_omp_sp_1d_c2r/ifft_omp_sp_1d_c2r.c b/ti/fftlib/src/ifft_omp_sp_1d_c2r/ifft_omp_sp_1d_c2r.c
index 17937e57522a7255e390e1d4ae844c7054d35695..f8fb6ad15d6293dccc33bb2608c8ffdda61729b6 100644 (file)
if(data_w==NULL || work_w==NULL || work_t==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/ifft_omp_sp_2d_c2c/ifft_omp_sp_2d_c2c.c b/ti/fftlib/src/ifft_omp_sp_2d_c2c/ifft_omp_sp_2d_c2c.c
index 18b58cf6a8e04652315cb9e055e6ce03f9da8680..6901bb7cd60af6b56fcb126e530e9093ccf44357 100644 (file)
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((u.sp_2d_c2c_e.para1.use_bs) || (u.sp_2d_c2c_e.para2.use_bs)){
diff --git a/ti/fftlib/src/ifft_omp_sp_2d_c2r/ifft_omp_sp_2d_c2r.c b/ti/fftlib/src/ifft_omp_sp_2d_c2r/ifft_omp_sp_2d_c2r.c
index 125820419bc4ae6237352c2c81d1667a326f1a8e..34fed08df1815f6c188260a8f29f7858f12e10a7 100644 (file)
if(data_wLocal==NULL || workbuf_wLocal==NULL || workbuf_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
edmaLocal = (FFT_EDMA_Struct *)edmaState;
diff --git a/ti/fftlib/src/ifft_omp_sp_3d_c2c/ifft_omp_sp_3d_c2c.c b/ti/fftlib/src/ifft_omp_sp_3d_c2c/ifft_omp_sp_3d_c2c.c
index 2eb21ba1e57977da3dd745a80d1006e7d18e3422..b3537bdf97910600c4c6f992325e4d708ff90f9f 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if ((actualCoreNum==1)||
diff --git a/ti/fftlib/src/ifft_omp_sp_3d_c2r/ifft_omp_sp_3d_c2r.c b/ti/fftlib/src/ifft_omp_sp_3d_c2r/ifft_omp_sp_3d_c2r.c
index 3ffb13912ecdb9305bd4f89cdc1fc4252675436c..670e1fb79e2d20ddec6662e2417b6b7b8a94bf78 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL || out_tLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if((u.dp_3d_c2r_e.para1.use_bs == 1) || (u.dp_3d_c2r_e.para2.use_bs == 1) || (u.dp_3d_c2r_e.para3.use_bs == 1))
diff --git a/ti/fftlib/src/ifft_sp_1d_c2c_batch/ifft_sp_1d_c2c_batch.c b/ti/fftlib/src/ifft_sp_1d_c2c_batch/ifft_sp_1d_c2c_batch.c
index 1d1bbe9339017510aae5a0e27272a9448116f021..cbff62bc2019fd385559f26e079e3eb261c93589 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.sp_1d_c2c_batch_e.para1.use_bs) {
diff --git a/ti/fftlib/src/ifft_sp_1d_c2r_batch/ifft_sp_1d_c2r_batch.c b/ti/fftlib/src/ifft_sp_1d_c2r_batch/ifft_sp_1d_c2r_batch.c
index a1f58e629ec6bbbb59c63fa3bf366d6d4d8c6bc6..4726669cd8052cc08934052a64e0628db9136704 100644 (file)
if(in_wLocal==NULL || out_wLocal==NULL) {
#endif
printf("Memory allocation error!\n");
- return;
+ return FFT_ERROR;
}
if (u.sp_1d_c2r_batch_e.para1.use_bs) {