MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AlignTo

Function AlignTo

tensorflow/lite/simple_memory_arena.cc:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename T>
26T AlignTo(size_t alignment, T offset) {
27 return offset % alignment == 0 ? offset
28 : offset + (alignment - offset % alignment);
29}
30
31} // namespace
32

Callers 2

AllocateMethod · 0.85
CommitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected