diff options
author | René Scharfe <l.s.r@web.de> | 2023-12-24 20:02:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-28 23:22:58 +0300 |
commit | c61740d6078b6da6219779844cfdd74ed430fb80 (patch) | |
tree | c57b1ce285c09fd5d5d36167778de2304306e441 /fmt-merge-msg.c | |
parent | 6cbae640006c3a9e1bb22654a8def7f4bef775b3 (diff) |
mem-pool: simplify alignment calculation
Use DIV_ROUND_UP in mem_pool_alloc() to round the allocation length to
the next multiple of GIT_MAX_ALIGNMENT instead of twiddling bits
explicitly. This is shorter and clearer, to the point that we no longer
need the comment that explains what's being calculated.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fmt-merge-msg.c')
0 files changed, 0 insertions, 0 deletions