diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-07 10:14:55 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-28 14:06:07 +0300 |
commit | b4bde18112016cb720f3df2c0f23f5897f85f7b3 (patch) | |
tree | 5b2a1dd2a022cf7414d6798651099915b0c42936 /src/mi | |
parent | 5d0f376b08126b51a001d7cdfba1ec4e0d644f54 (diff) | |
download | libunwind-b4bde18112016cb720f3df2c0f23f5897f85f7b3.tar.gz |
Apply UNW_ALIGN more in src/mi/mempool.c
Apply UNW_ALIGN in a few places in src/mi/mempool.c that I missed in
commit c2f757418 ("Rename and share `ALIGN' macro from
_UCD_internal.h").
Diffstat (limited to 'src/mi')
-rw-r--r-- | src/mi/mempool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mi/mempool.c b/src/mi/mempool.c index 5e42219d..e5679044 100644 --- a/src/mi/mempool.c +++ b/src/mi/mempool.c @@ -115,7 +115,7 @@ expand (struct mempool *pool) GET_MEMORY (mem, size); if (!mem) { - size = (pool->obj_size + pg_size - 1) & -pg_size; + size = UNW_ALIGN(pool->obj_size, pg_size); GET_MEMORY (mem, size); if (!mem) { @@ -149,7 +149,7 @@ mempool_init (struct mempool *pool, size_t obj_size, size_t reserve) pool->obj_size = obj_size; pool->reserve = reserve; - pool->chunk_size = (2*reserve*obj_size + pg_size - 1) & -pg_size; + pool->chunk_size = UNW_ALIGN(2*reserve*obj_size, pg_size); expand (pool); } |