File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -601,7 +601,6 @@ _dispatch_alloc_init(void)
601
601
// Double-check our math. These are all compile time checks and don't
602
602
// generate code.
603
603
604
- dispatch_assert (sizeof (bitmap_t ) == BYTES_PER_BITMAP );
605
604
dispatch_assert (sizeof (bitmap_t ) == BYTES_PER_SUPERMAP );
606
605
607
606
dispatch_assert (sizeof (struct dispatch_continuation_s ) <=
Original file line number Diff line number Diff line change 97
97
// Use the largest type your platform is comfortable doing atomic ops with.
98
98
// TODO: rdar://11477843
99
99
typedef unsigned long bitmap_t ;
100
- #if defined(__LP64__ )
101
- #define BYTES_PER_BITMAP 8
102
- #else
103
- #define BYTES_PER_BITMAP 4
104
- #endif
100
+ #define BYTES_PER_BITMAP sizeof(bitmap_t)
105
101
106
102
#define BITMAP_C (v ) ((bitmap_t)(v))
107
103
#define BITMAP_ALL_ONES (~BITMAP_C(0))
@@ -115,7 +111,7 @@ typedef unsigned long bitmap_t;
115
111
#define CONSUMED_BYTES_PER_BITMAP (BYTES_PER_BITMAP + \
116
112
(DISPATCH_CONTINUATION_SIZE * CONTINUATIONS_PER_BITMAP))
117
113
118
- #define BYTES_PER_SUPERMAP BYTES_PER_BITMAP
114
+ #define BYTES_PER_SUPERMAP sizeof(bitmap_t)
119
115
#define CONSUMED_BYTES_PER_SUPERMAP (BYTES_PER_SUPERMAP + \
120
116
(BITMAPS_PER_SUPERMAP * CONSUMED_BYTES_PER_BITMAP))
121
117
You can’t perform that action at this time.
0 commit comments