summaryrefslogtreecommitdiff
path: root/opencl/random.cl.h
diff options
context:
space:
mode:
authorDaniel Sabo <DanielSabo@gmail.com>2013-11-02 22:15:29 -0700
committerDaniel Sabo <DanielSabo@gmail.com>2013-11-02 22:23:01 -0700
commitc2b168076628ec5ea47c6864a2b80bfe75b34fc2 (patch)
tree0f88427ff040bd9fec741f9b15a8bb8b81860e67 /opencl/random.cl.h
parent6b00f791a1ec2a94c232a553020fe3a68500fec8 (diff)
opencl: Fix kernel compile warnings
Diffstat (limited to 'opencl/random.cl.h')
-rw-r--r--opencl/random.cl.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/opencl/random.cl.h b/opencl/random.cl.h
index a0e7a631..6b789514 100644
--- a/opencl/random.cl.h
+++ b/opencl/random.cl.h
@@ -25,6 +25,28 @@ static const char* random_cl_source =
"#define RANDOM_DATA_SIZE (15083+15091+15101) \n"
"#define PRIME_SIZE 533u \n"
" \n"
+"inline uint _gegl_cl_random_int (__global const int *cl_random_data, \n"
+" __global const long *cl_random_primes, \n"
+" int seed, int x, int y, int z, int n); \n"
+" \n"
+"uint gegl_cl_random_int (__global const int *cl_random_data, \n"
+" __global const long *cl_random_primes, \n"
+" int seed, int x, int y, int z, int n); \n"
+" \n"
+"int gegl_cl_random_int_range (__global const int *cl_random_data, \n"
+" __global const long *cl_random_primes, \n"
+" int seed, int x, int y, int z, int n, \n"
+" int min, int max); \n"
+" \n"
+"float gegl_cl_random_float (__global const int *cl_random_data, \n"
+" __global const long *cl_random_primes, \n"
+" int seed, int x, int y, int z, int n); \n"
+" \n"
+"float gegl_cl_random_float_range (__global const int *cl_random_data, \n"
+" __global const long *cl_random_primes, \n"
+" int seed, int x, int y, int z, int n, \n"
+" float min, float max); \n"
+" \n"
"inline uint \n"
"_gegl_cl_random_int (__global const int *cl_random_data, \n"
" __global const long *cl_random_primes, \n"
@@ -80,7 +102,7 @@ static const char* random_cl_source =
"} \n"
" \n"
" \n"
-"#define G_RAND_FLOAT_TRANSFORM 0.00001525902189669642175 \n"
+"#define G_RAND_FLOAT_TRANSFORM 0.00001525902189669642175f \n"
" \n"
"float \n"
"gegl_cl_random_float (__global const int *cl_random_data, \n"