Skip to content

shz_memcpy64

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

Specialized memcpy() variant for copying multiples of 64-bytes.

NameTypeDescription
dstvoid *SHZ_RESTRICT
srcconst void *SHZ_RESTRICT
bytessize_t

void *

Copies a from an 8-byte aligned buffer to a 32-byte aligned buffer, 64 bytes at a time. Returns the dst address.

  • src and dst buffers must not overlap.
  • dst must be 32-byte aligned, while src can be only 8-byte aligned. bytes must be a multiple of 64.
  • C++ equivalent: shz::memcpy64
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_mem.h:238
  • Module: Memory, section "Specializations"