Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-12-24 20:02:04 +0300
committerJunio C Hamano <gitster@pobox.com>2023-12-28 23:22:58 +0300
commitc61740d6078b6da6219779844cfdd74ed430fb80 (patch)
treec57b1ce285c09fd5d5d36167778de2304306e441 /fmt-merge-msg.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 'fmt-merge-msg.c')
0 files changed, 0 insertions, 0 deletions