Skip to content

shz_memcpy4

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

Copies a from one 4-byte aligned buffer to another 4 bytes at a time.

NameTypeDescription
dstvoid *SHZ_RESTRICT
srcconst void *SHZ_RESTRICT
bytessize_t

void *

The dst buffer is returned.

  • dst and src must both be aligned by at least 4 bytes, and bytes must be a multiple of 4.
  • dst and src buffers should not be overlapping.
  • C++ equivalent: shz::memcpy4
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_mem.h:144
  • Module: Memory, section "Specializations"