summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-12-24 18:02:04 +0100
committerJunio C Hamano <gitster@pobox.com>2023-12-28 12:22:58 -0800
commitc61740d6078b6da6219779844cfdd74ed430fb80 (patch)
treec57b1ce285c09fd5d5d36167778de2304306e441 /commit-graph.c
parent6cbae640006c3a9e1bb22654a8def7f4bef775b3 (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 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions