MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / round_up_to

Function round_up_to

src/common/image/image_reader.cpp:205–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204namespace {
205static size_t round_up_to(size_t value, size_t alignment) {
206 if (alignment == 0) {
207 return value;
208 }
209 return ((value + alignment - 1) / alignment) * alignment;
210}
211
212static size_t bucket_size_for_image(size_t requested_size) {
213 if (requested_size <= 64 * 1024) {

Callers 1

bucket_size_for_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected