MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / divide_up

Function divide_up

util/compiler.cpp:74–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#endif
73
74uint64_t divide_up(uint64_t n, uint64_t amount) {
75 return (n + amount - 1) / amount;
76}
77
78uint64_t round_up(uint64_t n, uint64_t amount) {
79 return divide_up(n, amount) * amount;

Callers 7

np_bitsMethod · 0.85
getCommonAccessSizeFunction · 0.85
size_byte_numberFunction · 0.85
valueToBytesFunction · 0.85
bytesToValueFunction · 0.85
getStoreByteSizeMethod · 0.85
round_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected