diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-12 13:06:57 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-12 13:06:57 +0200 |
commit | 4cfaf45051e43c00ea9ac5ac996da246817e4c10 (patch) | |
tree | 1f35f020962db758a6d289fe589d3d5baacc0d1e /src/types.h | |
parent | 69b7770ec32dbda9d4fcca198e830f84256640fc (diff) | |
download | ffts-4cfaf45051e43c00ea9ac5ac996da246817e4c10.zip ffts-4cfaf45051e43c00ea9ac5ac996da246817e4c10.tar.gz |
Initial steps to support double precision. Replace data_t with float, and cdata_t with ffts_cpx_32f.
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/types.h b/src/types.h index 749d387..f8997ce 100644 --- a/src/types.h +++ b/src/types.h @@ -38,12 +38,8 @@ #pragma once #endif -#if defined(_Complex_I) && defined(complex) && defined(I) -typedef complex float cdata_t; -#else -typedef float cdata_t[2]; -#endif - -typedef float data_t; +/* Define complex number as two element array */ +typedef float ffts_cpx_32f[2]; +typedef double ffts_cpx_64f[2]; #endif /* FFTS_TYPES_H */ |