MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / adjust

Function adjust

system/lib/llvm-libc/src/string/memory_utils/utils.h:296–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294// same amount.
295template <typename T1, typename T2>
296LIBC_INLINE void adjust(ptrdiff_t offset, T1 *__restrict &p1,
297 T2 *__restrict &p2, size_t &count) {
298 p1 += offset;
299 p2 += offset;
300 count -= static_cast<size_t>(offset);
301}
302
303// Advances p1 and p2 so p1 gets aligned to the next SIZE bytes boundary
304// and decrease count by the same amount.

Callers 5

align_forwardMethod · 0.85
align_backwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected