MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / roundUpToStep

Function roundUpToStep

test/memory.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82TYPED_TEST_SUITE(MemAlloc, TestTypes);
83
84size_t roundUpToStep(size_t bytes) {
85 if (step_bytes == 0) return bytes;
86
87 size_t remainder = bytes % step_bytes;
88 if (remainder == 0) return bytes;
89
90 return bytes + step_bytes - remainder;
91}
92
93template<typename T>
94void memAllocArrayScopeTest(int elements) {

Callers 2

memAllocArrayScopeTestFunction · 0.85
memAllocPtrScopeTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected