# shz_memcpy64

Source: https://sh4zam.com/api/memory/shz_memcpy64/

```c
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.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `dst` | `void *SHZ_RESTRICT` |  |
| `src` | `const void *SHZ_RESTRICT` |  |
| `bytes` | `size_t` |  |

## Returns

`void *`

## Details

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

## Warnings

- `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.

## Availability

- **C++ equivalent:** [`shz::memcpy64`](https://sh4zam.com/api/cpp/#shzmemcpy64)
- **Type-generic form:** none
- **Back-ends:** SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_mem.h:238`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_mem.h#L238)
- **Module:** [Memory](https://sh4zam.com/api/memory/), section "Specializations"
