summaryrefslogtreecommitdiff
path: root/src/cl_utils.h
diff options
context:
space:
mode:
authorbsegovia <devnull@localhost>2011-10-15 04:06:29 +0000
committerKeith Packard <keithp@keithp.com>2012-08-10 16:14:59 -0700
commit716af9adf3b4d28919b8fe2925cf920759ab2140 (patch)
treea2e6b2a6032547f165bcd6cdf80b36127252d913 /src/cl_utils.h
parentf7f12f6a69b73c51c95a96ed484dfb42a37790f4 (diff)
Finished first support for image2D. Right now, we only support linear formats
Diffstat (limited to 'src/cl_utils.h')
-rw-r--r--src/cl_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cl_utils.h b/src/cl_utils.h
index 944e0443..29268c60 100644
--- a/src/cl_utils.h
+++ b/src/cl_utils.h
@@ -311,6 +311,9 @@ do { \
/* Align a structure or a variable */
#define ALIGNED(X) __attribute__ ((aligned (X)))
+/* Number of DWORDS */
+#define SIZEOF32(X) (sizeof(X) / sizeof(uint32_t))
+
/* 32 bits atomic variable */
typedef volatile int atomic_t;