summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/hilobyte.h
diff options
context:
space:
mode:
Diffstat (limited to 'reference/C/CONTRIB/SNIP/hilobyte.h')
-rwxr-xr-xreference/C/CONTRIB/SNIP/hilobyte.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/SNIP/hilobyte.h b/reference/C/CONTRIB/SNIP/hilobyte.h
new file mode 100755
index 0000000..020bf04
--- /dev/null
+++ b/reference/C/CONTRIB/SNIP/hilobyte.h
@@ -0,0 +1,2 @@
+#define LOBYTE(x) ((unsigned char)(x))
+#define HIBYTE(x) ((unsigned int)(x) >> 8)