diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-05-14 22:49:32 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-05-14 22:53:13 +0000 |
commit | 7e7d85f72696c10ff95dd1208b64cf5ed1afa93b (patch) | |
tree | 5b06fba9c0a62243e1d21091017c04df2814e8af | |
parent | 7c42a1779cb8902133e028c0e6f414f8e3d4c115 (diff) |
printf.c: Added cl_khr_int64 feature to printf builtin
This (should) allow building on 64 bit systems, and is benign on 32
bit systems per Khronos 'test_printf' tests.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r-- | src/builtins/pocl_types.h | 2 | ||||
-rw-r--r-- | src/builtins/printf.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/builtins/pocl_types.h b/src/builtins/pocl_types.h index 3f280cf..ce6ad9e 100644 --- a/src/builtins/pocl_types.h +++ b/src/builtins/pocl_types.h @@ -2,11 +2,9 @@ //#include "pocl_features.h" -#if 0 // GP: ??? #if defined cl_khr_fp64 && !defined cl_khr_int64 # error "cl_khr_fp64 requires cl_khr_int64" #endif -#endif /* Disable undefined datatypes */ diff --git a/src/builtins/printf.c b/src/builtins/printf.c index 196373c..c42341e 100644 --- a/src/builtins/printf.c +++ b/src/builtins/printf.c @@ -27,6 +27,7 @@ // GP: Add the OpenCL types for "C": #define cl_khr_fp64 +#define cl_khr_int64 #include "_kernel_c.h" #include <limits.h> |