ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 4c8621ac was
e8b15358,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
new set of bug repros for resolver bugs
|
-
Property mode set to
100644
|
File size:
435 bytes
|
Line | |
---|
1 | |
---|
2 | #include <stdbool.h> |
---|
3 | #include <stdlib> |
---|
4 | |
---|
5 | #define POOL_SIZE_EXP 24 |
---|
6 | #define POOL_SIZE_BYTES 0x1 << POOL_SIZE_EXP |
---|
7 | #define POOL_PTR_MASK ~(POOL_SIZE_BYTES - 1) |
---|
8 | |
---|
9 | #define CARDS_SIZE_EXP 12 |
---|
10 | #define CARDS_SIZE_BYTES 0x1 << CARDS_SIZE_EXP |
---|
11 | #define CARDS_OFFSET_MASK (~(CARDS_SIZE_BYTES - 1)) & (POOL_SIZE_BYTES - 1) |
---|
12 | #define CARDS_COUNT POOL_SIZE_BYTES / CARDS_SIZE_BYTES |
---|
13 | |
---|
14 | struct card_table_t |
---|
15 | { |
---|
16 | size_t count; |
---|
17 | void* cards_start[CARDS_COUNT]; |
---|
18 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.