Add OBJC_SMALL_OBJECT_SHIFT macro.

main
theraven 15 years ago
parent f3d2b7034c
commit 22e5aaf7b0

@ -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)
/**

Loading…
Cancel
Save