Mercurial > hg > Game > Cerium
changeset 1753:c1711deae8c5 draft
remove fft/output.pgm
author | kkb |
---|---|
date | Fri, 22 Nov 2013 11:10:29 +0900 |
parents | 537707f376c8 |
children | f3770342ea9b |
files | example/fft/gpu/spinFact.cl example/fft/output.pgm |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/example/fft/gpu/spinFact.cl Fri Nov 22 02:49:43 2013 +0900 +++ b/example/fft/gpu/spinFact.cl Fri Nov 22 11:10:29 2013 +0900 @@ -1,5 +1,5 @@ -#define PI 3.14159265358979323846 -#define PI_2 1.57079632679489661923 +#define PI 3.14159265358979323846f +#define PI_2 1.57079632679489661923f __kernel void spinFact(__constant long *param, __global float2 *w) @@ -7,9 +7,9 @@ unsigned long i = (unsigned long)get_global_id(0); long n =param[3]; - double2 angle; - angle.x = (double)(2*i*PI/(double)n); - angle.y = (double)((2*i*PI/(double)n) + PI_2); + float2 angle; + angle.x = (float)(2*i*PI/(float)n); + angle.y = (float)((2*i*PI/(float)n) + PI_2); w[i].x = cos((float)angle.x); w[i].y = cos((float)angle.y);