diff options
author | Jason Ekstrand <[email protected]> | 2018-06-29 14:59:56 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-07-02 12:09:14 -0700 |
commit | 70b16963fc6aa5f8c0e947ea48095bb679a3fa74 (patch) | |
tree | fa7b9a5d6e8897e762f80073972d7f53910cd2e3 /src/util/ralloc.c | |
parent | 4819da2301916512dbc50e0b5e97a75a6b6320a2 (diff) |
util/macros: Import ALIGN_POT from ralloc.c
v2 (Jason Ekstrand):
- Rename y to pot_align (Brian)
- Also use ALIGN_POT in build_id.c and slab.c (Brian)
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/util/ralloc.c')
-rw-r--r-- | src/util/ralloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/ralloc.c b/src/util/ralloc.c index 42cfa2e391d..5d77f75ee85 100644 --- a/src/util/ralloc.c +++ b/src/util/ralloc.c @@ -553,8 +553,6 @@ ralloc_vasprintf_rewrite_tail(char **str, size_t *start, const char *fmt, * other buffers. */ -#define ALIGN_POT(x, y) (((x) + (y) - 1) & ~((y) - 1)) - #define MIN_LINEAR_BUFSIZE 2048 #define SUBALLOC_ALIGNMENT sizeof(uintptr_t) #define LMAGIC 0x87b9c7d3 |