Skip to content

shz_memswap32_1_xmtrx

Markdown
SHZ_INLINE void shz_memswap32_1_xmtrx(void* SHZ_RESTRICT p1, void* SHZ_RESTRICT p2) SHZ_NOEXCEPT;

Swaps the values within the given 32-byte buffers, using XMTRX.

NameTypeDescription
p1void *SHZ_RESTRICT
p2void *SHZ_RESTRICT

Nothing (void).

Equivalent to shz_memcpy32_1(), except copying is done through XMTRX.

  • This routine clobbers XMTRX!
  • _xmtrx: Uses the XMTRX register bank as a 64-byte scratch buffer. Clobbers XMTRX. (Naming and Suffixes)
  • C++ equivalent: shz::memswap32_1_xmtrx
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_mem.h:328
  • Module: Memory, section "Constant-sized Operations"