29 |
#define ROUND_UP_PTR(n) (((long)(n) + (PTR_ALIGN-1)) & ~(PTR_ALIGN-1)) |
#define ROUND_UP_PTR(n) (((long)(n) + (PTR_ALIGN-1)) & ~(PTR_ALIGN-1)) |
30 |
#define ROUND_DOWN_PTR(n) (((long)(n) & ~(PTR_ALIGN-1))) |
#define ROUND_DOWN_PTR(n) (((long)(n) & ~(PTR_ALIGN-1))) |
31 |
|
|
32 |
|
/* alignment required for contiguous pointers */ |
33 |
|
#define CPTR_ALIGN (PTR_ALIGN < sizeof(struct contblock) ? sizeof(struct contblock) : PTR_ALIGN) |
34 |
|
|
35 |
|
#define ROUND_UP_PTR_CONT(n) (((long)(n) + (CPTR_ALIGN-1)) & ~(CPTR_ALIGN-1)) |
36 |
|
#define ROUND_DOWN_PTR_CONT(n) (((long)(n) & ~(CPTR_ALIGN-1))) |
37 |
|
|
38 |
|
|
39 |
#ifdef SGC |
#ifdef SGC |
40 |
|
|