summaryrefslogtreecommitdiff
path: root/orc/orcutils.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-07-25 22:44:54 -0700
committerDavid Schleef <ds@schleef.org>2009-07-25 22:44:54 -0700
commitd5f1decc5c7cd864b1ea2d1945d519165f094d8f (patch)
treec28465f5e10147a45d5c5397dd88ec5fa863c364 /orc/orcutils.h
parent50d345377f7769619cd7da76517596a0db54b663 (diff)
downloadorc-d5f1decc5c7cd864b1ea2d1945d519165f094d8f.tar.gz
preliminary 2-D support
Diffstat (limited to 'orc/orcutils.h')
-rw-r--r--orc/orcutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/orc/orcutils.h b/orc/orcutils.h
index 79ad8e1..74e8d67 100644
--- a/orc/orcutils.h
+++ b/orc/orcutils.h
@@ -52,6 +52,7 @@ typedef unsigned int orc_bool;
#define ORC_CLAMP(x,a,b) ((x)<(a) ? (a) : ((x)>(b) ? (b) : (x)))
#endif
#define ORC_PTR_TO_INT(x) ((int)(long)(x))
+#define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset)))
#define ORC_READ_UINT32_LE(ptr) \
((uint32_t)( \