summaryrefslogtreecommitdiff
path: root/includes/MachDeps.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/MachDeps.h')
-rw-r--r--includes/MachDeps.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/MachDeps.h b/includes/MachDeps.h
index abe4405d5e..7b71f7c378 100644
--- a/includes/MachDeps.h
+++ b/includes/MachDeps.h
@@ -105,4 +105,14 @@
#endif
#endif
+#ifndef TAG_BITS
+#if SIZEOF_HSWORD == 4
+#define TAG_BITS 2
+#else
+#define TAG_BITS 3
+#endif
+#endif
+
+#define TAG_MASK ((1 << TAG_BITS) - 1)
+
#endif /* MACHDEPS_H */