1
#ifndef _PCILIB_PAGECPY_H
2
#define _PCILIB_PAGECPY_H
12
* This function should be used to move large blocks of non-cached memory between
13
* aligned memory locations. The function will determine the CPU model and alginment
14
* and call appropriate implementation. If nothing suitable found, standard memcpy
15
* will be used. It is OK to call on small or unligned data, the standard memcpy
16
* will be executed in this case. The memory regions should not intersect.
17
* Only AVX implementation so far.
18
* @param[out] dst - destination memory region
19
* @param[in] src - source memory region
20
* @param[in] size - size of memory region in bytes.
21
* @return - `dst` or NULL on error
23
void pcilib_pagecpy(void *dst, void *src, size_t size);
29
#endif /* _PCILIB_PAGECPY_H */