Commit d7ecf3a2 authored by Heinz-Bernd Eggenstein's avatar Heinz-Bernd Eggenstein
Browse files

Bug #1608: clFFT use of native_sin , native_cos can cause validation problems

fixed previous commit for C99 compliant float printf format
parent 233caaf3
...@@ -987,7 +987,7 @@ insertSinCosCalcDirectNative(string & kernel_string, cl_fft_plan *plan, int num, ...@@ -987,7 +987,7 @@ insertSinCosCalcDirectNative(string & kernel_string, cl_fft_plan *plan, int num,
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const char format[] = "%a"; const char format[] = "%a";
#else #else
const char format[] = "%f"; const char format[] = "%.10e";
#endif #endif
if(denom & (denom-1)) { if(denom & (denom-1)) {
...@@ -1026,7 +1026,7 @@ insertSinCosCalcDirect(string & kernel_string, cl_fft_plan *plan, int num, int d ...@@ -1026,7 +1026,7 @@ insertSinCosCalcDirect(string & kernel_string, cl_fft_plan *plan, int num, int d
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const char format[] = "%a"; const char format[] = "%a";
#else #else
const char format[] = "%f"; const char format[] = "%.10e";
#endif #endif
if(denom & (denom-1)) { if(denom & (denom-1)) {
...@@ -1110,7 +1110,7 @@ insertSinCosCalcTaylor3(string & kernel_string, cl_fft_plan *plan, int num, int ...@@ -1110,7 +1110,7 @@ insertSinCosCalcTaylor3(string & kernel_string, cl_fft_plan *plan, int num, int
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const char format[] = "%a"; const char format[] = "%a";
#else #else
const char format[] = "%f"; const char format[] = "%.10e";
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment