summaryrefslogtreecommitdiff
path: root/generic/lib/shared/vload.cl
diff options
context:
space:
mode:
Diffstat (limited to 'generic/lib/shared/vload.cl')
-rw-r--r--generic/lib/shared/vload.cl10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/lib/shared/vload.cl b/generic/lib/shared/vload.cl
index 0b1ea5e..1f266fa 100644
--- a/generic/lib/shared/vload.cl
+++ b/generic/lib/shared/vload.cl
@@ -1,23 +1,23 @@
#include <clc/clc.h>
#define VLOAD_VECTORIZE(PRIM_TYPE, ADDR_SPACE) \
- _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##2 vload2(size_t offset, ADDR_SPACE PRIM_TYPE *x) { \
+ _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##2 vload2(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
return (PRIM_TYPE##2)(x[offset] , x[offset+1]); \
} \
\
- _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##3 vload3(size_t offset, ADDR_SPACE PRIM_TYPE *x) { \
+ _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##3 vload3(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
return (PRIM_TYPE##3)(x[offset] , x[offset+1], x[offset+2]); \
} \
\
- _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##4 vload4(size_t offset, ADDR_SPACE PRIM_TYPE *x) { \
+ _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##4 vload4(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
return (PRIM_TYPE##4)(vload2(offset, x), vload2(offset+2, x)); \
} \
\
- _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##8 vload8(size_t offset, ADDR_SPACE PRIM_TYPE *x) { \
+ _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##8 vload8(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
return (PRIM_TYPE##8)(vload4(offset, x), vload4(offset+4, x)); \
} \
\
- _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##16 vload16(size_t offset, ADDR_SPACE PRIM_TYPE *x) { \
+ _CLC_OVERLOAD _CLC_DEF PRIM_TYPE##16 vload16(size_t offset, const ADDR_SPACE PRIM_TYPE *x) { \
return (PRIM_TYPE##16)(vload8(offset, x), vload8(offset+8, x)); \
} \