Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Test/FastRefCount.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ int main()

const long refcount_shift = 1;
const size_t weak_mask = ((size_t)1)<<((sizeof(size_t)*8)-refcount_shift);
const size_t refcount_mask = ~weak_mask;
const size_t guard_mask = weak_mask >> 1;
const size_t refcount_mask = ~(weak_mask | guard_mask);
const size_t refcount_max = refcount_mask - 1;

size_t get_refcount(id obj)
Expand Down
Loading
Loading