aboutsummaryrefslogtreecommitdiff
path: root/modules/cmath~.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cmath~.c')
-rw-r--r--modules/cmath~.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/cmath~.c b/modules/cmath~.c
index 3bd63a9..5526b9f 100644
--- a/modules/cmath~.c
+++ b/modules/cmath~.c
@@ -35,8 +35,8 @@ static t_int *cmath_perform_clog(t_int *w)
{
t_float *inx = (float *)(w[2]);
t_float *iny = (float *)(w[3]);
- t_float *outx = (float *)(w[4]);
- t_float *outy = (float *)(w[5]);
+ t_float *outx = (float *)(w[5]); // clockwize addressing
+ t_float *outy = (float *)(w[4]);
t_int i;
t_int n = (t_int)(w[1]);
t_float x;
@@ -61,8 +61,8 @@ static t_int *cmath_perform_cexp(t_int *w)
{
t_float *inx = (float *)(w[2]);
t_float *iny = (float *)(w[3]);
- t_float *outx = (float *)(w[4]);
- t_float *outy = (float *)(w[5]);
+ t_float *outx = (float *)(w[5]); // clockwize addressing
+ t_float *outy = (float *)(w[4]);
t_int i;
t_int n = (t_int)(w[1]);
t_float x;
@@ -82,8 +82,8 @@ static t_int *cmath_perform_nfft(t_int *w)
{
t_float *inx = (float *)(w[2]);
t_float *iny = (float *)(w[3]);
- t_float *outx = (float *)(w[4]);
- t_float *outy = (float *)(w[5]);
+ t_float *outx = (float *)(w[5]); // clockwize addressing
+ t_float *outy = (float *)(w[4]);
t_int i;
t_int n = (t_int)(w[1]);
t_float x;
@@ -105,8 +105,8 @@ static t_int *cmath_perform_nifft(t_int *w)
{
t_float *inx = (float *)(w[2]);
t_float *iny = (float *)(w[3]);
- t_float *outx = (float *)(w[4]);
- t_float *outy = (float *)(w[5]);
+ t_float *outx = (float *)(w[5]); // clockwize addressing
+ t_float *outy = (float *)(w[4]);
t_int i;
t_int n = (t_int)(w[1]);
t_float x;