Skip to content

shz_memcpy32

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

Copies bytes from the src to the dst buffer in 32-byte chunks.

NameTypeDescription
dstvoid *SHZ_RESTRICT
srcconst void *SHZ_RESTRICT
bytessize_t

void *

Transfers from 8-byte aligned buffer, src to 32-byte aligned buffer, dst, 32 bytes at a time. Returns the dst address.

  • This is the quickest way to move 32-byte chunks of data around within memory, but the shz_sq_memcpy32() will be faster when writing through the cache to external memory.
  • dst must be 32-byte aligned, while src can be only 8-byte aligned. bytes must be a multiple of 32.
  • src and dst buffers must not overlap.
  • C++ equivalent: shz::memcpy32
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_mem.h:189
  • Module: Memory, section "Specializations"

shz_sq_memcpy32