Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oliver Behnke
libclfft
Commits
d7ecf3a2
Commit
d7ecf3a2
authored
Jul 25, 2012
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fft_kernelstring.cpp
View file @
d7ecf3a2
...
...
@@ -987,7 +987,7 @@ insertSinCosCalcDirectNative(string & kernel_string, cl_fft_plan *plan, int num,
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const
char
format
[]
=
"%a"
;
#else
const
char
format
[]
=
"%
f
"
;
const
char
format
[]
=
"%
.10e
"
;
#endif
if
(
denom
&
(
denom
-
1
))
{
...
...
@@ -1026,7 +1026,7 @@ insertSinCosCalcDirect(string & kernel_string, cl_fft_plan *plan, int num, int d
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const
char
format
[]
=
"%a"
;
#else
const
char
format
[]
=
"%
f
"
;
const
char
format
[]
=
"%
.10e
"
;
#endif
if
(
denom
&
(
denom
-
1
))
{
...
...
@@ -1110,7 +1110,7 @@ insertSinCosCalcTaylor3(string & kernel_string, cl_fft_plan *plan, int num, int
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
const
char
format
[]
=
"%a"
;
#else
const
char
format
[]
=
"%
f
"
;
const
char
format
[]
=
"%
.10e
"
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment