File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
#define SHAPE_DEBUG (VM_CHECK_MODE > 0)
20
20
#endif
21
21
22
+ #if SIZEOF_SHAPE_T == 4
23
+ #define SHAPE_BUFFER_SIZE 0x80000
24
+ #else
25
+ #define SHAPE_BUFFER_SIZE 0x8000
26
+ #endif
27
+
22
28
#define SINGLE_CHILD_TAG 0x1
23
29
#define TAG_SINGLE_CHILD (x ) (struct rb_id_table *)((uintptr_t)x | SINGLE_CHILD_TAG)
24
30
#define SINGLE_CHILD_MASK (~((uintptr_t)SINGLE_CHILD_TAG))
25
31
#define SINGLE_CHILD_P (x ) (((uintptr_t)x) & SINGLE_CHILD_TAG)
26
32
#define SINGLE_CHILD (x ) (rb_shape_t *)((uintptr_t)x & SINGLE_CHILD_MASK)
27
33
#define ANCESTOR_CACHE_THRESHOLD 10
34
+ #define MAX_SHAPE_ID (SHAPE_BUFFER_SIZE - 1)
28
35
29
36
static ID id_frozen ;
30
37
static ID id_t_object ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ typedef uint32_t attr_index_t;
11
11
typedef uint32_t shape_id_t ;
12
12
typedef uint32_t redblack_id_t ;
13
13
# define SHAPE_ID_NUM_BITS 32
14
- # define SHAPE_BUFFER_SIZE 0x80000
15
14
16
15
#else
17
16
@@ -21,7 +20,6 @@ typedef uint16_t attr_index_t;
21
20
typedef uint16_t shape_id_t ;
22
21
typedef uint16_t redblack_id_t ;
23
22
# define SHAPE_ID_NUM_BITS 16
24
- # define SHAPE_BUFFER_SIZE 0x8000
25
23
26
24
#endif
27
25
@@ -34,7 +32,6 @@ typedef uint16_t redblack_id_t;
34
32
35
33
# define SHAPE_MAX_VARIATIONS 8
36
34
37
- # define MAX_SHAPE_ID (SHAPE_BUFFER_SIZE - 1)
38
35
# define INVALID_SHAPE_ID SHAPE_MASK
39
36
# define ROOT_SHAPE_ID 0x0
40
37
You can’t perform that action at this time.
0 commit comments