MCPcopy Create free account
hub / github.com/eggert/tz / align_to

Function align_to

zic.c:599–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597 size_overflow();
598}
599
600ATTRIBUTE_PURE_114833_HACK
601static ptrdiff_t
602align_to(ptrdiff_t size, ptrdiff_t alignment)
603{
604 ptrdiff_t lo_bits = alignment - 1, sum = size_sum(size, lo_bits);
605 return sum & ~lo_bits;
606}
607
608#if !HAVE_STRDUP

Callers 1

writezoneFunction · 0.85

Calls 1

size_sumFunction · 0.85

Tested by

no test coverage detected