Skip to content

shz_memmove

Markdown
SHZ_INLINE void* shz_memmove(void* dst, const void* src, size_t bytes) SHZ_NOEXCEPT;

Generic drop-in fast memmove() replacement.

NameTypeDescription
dstvoid *
srcconst void *
bytessize_t

void *

Copies bytes from src to dst, determining the most efficient specialization to call into at run-time, return dst. The source and destination buffers are allowed to overlap, making this routine slightly less efficient, but more versatile than shz_memcpy().

There is no alignment or size requirement for this routine.

  • C++ equivalent: shz::memmove
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_mem.h:90
  • Module: Memory, section "C stdlib Replacements"

shz_memcpy