Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
74
uint64_t divide_up(uint64_t n, uint64_t amount) {
75
return (n + amount - 1) / amount;
76
}
77
78
uint64_t round_up(uint64_t n, uint64_t amount) {
79
return divide_up(n, amount) * amount;
Callers
7
np_bits
Method · 0.85
getCommonAccessSize
Function · 0.85
size_byte_number
Function · 0.85
valueToBytes
Function · 0.85
bytesToValue
Function · 0.85
getStoreByteSize
Method · 0.85
round_up
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected