shz_memcpy2
SHZ_INLINE void* shz_memcpy2( void* SHZ_RESTRICT dst, const void* SHZ_RESTRICT src, size_t bytes) SHZ_NOEXCEPT;Copies from one 2-byte aligned buffer to another two bytes at a time.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
dst | void *SHZ_RESTRICT | |
src | const void *SHZ_RESTRICT | |
bytes | size_t |
Returns
Section titled “Returns”void *
Details
Section titled “Details”The dst pointer is returned.
Warnings
Section titled “Warnings”dstandsrcmust both be aligned by at least 2 bytes, andbytesmust be a multiple of 2.dstandsrcbuffers should not be overlapping.
Availability
Section titled “Availability”- C++ equivalent:
shz::memcpy2 - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_mem.h:129 - Module: Memory, section "Specializations"