From 22e5aaf7b0b2c65b91f0145c75cabbf38e5edeb3 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 26 Jul 2011 19:13:06 +0000 Subject: [PATCH] Add OBJC_SMALL_OBJECT_SHIFT macro. --- objc/runtime.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objc/runtime.h b/objc/runtime.h index fb0d544..5a487a0 100644 --- a/objc/runtime.h +++ b/objc/runtime.h @@ -749,6 +749,10 @@ BOOL objc_registerSmallObjectClass_np(Class cls, uintptr_t classId); * This restriction may be relaxed in the future on 64-bit systems. */ #define OBJC_SMALL_OBJECT_MASK ((sizeof(id) == 4) ? 1 : 7) +/** + * The number of bits reserved for the class identifier in a small object. + */ +#define OBJC_SMALL_OBJECT_SHIFT ((sizeof(id) == 4) ? 1 : 3) /**