sPyNNaker neural_modelling 7.1.1
Loading...
Searching...
No Matches
Functions
common_mem.h File Reference

Utility functions for working with memory. More...

#include <common-typedefs.h>

Go to the source code of this file.

Functions

static void fast_memcpy (void *restrict to, const void *restrict from, size_t num_bytes)
 A small and fast version of memcpy().
 

Detailed Description

Utility functions for working with memory.

Definition in file common_mem.h.

Function Documentation

◆ fast_memcpy()

static void fast_memcpy ( void *restrict  to,
const void *restrict  from,
size_t  num_bytes 
)
inlinestatic

A small and fast version of memcpy().

Both pointers must be aligned and a whole number of words must be being copied. The areas of memory must not overlap.

Parameters
[out]toWhere to copy to. Must be word-aligned.
[in]fromWhere to copy from. Must be word-aligned.
[in]num_bytesThe number of bytes to copy. Must be a multiple of 4.

Definition at line 33 of file common_mem.h.