MCPcopy Create free account
hub / github.com/apple/foundationdb / round_up

Function round_up

flow/test_memcpy_perf.cpp:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static uint8_t *small_buf_read, *small_buf_write;
69
70static size_t round_up(size_t sz, size_t alignment) {
71 return (((sz - 1) / alignment) + 1) * alignment;
72}
73
74static uint8_t* rte_malloc(char const* ignored, size_t sz, size_t align) {
75 return (uint8_t*)aligned_alloc(align, round_up(sz, align));

Callers 1

rte_mallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected