34 inline FARSA_NNFW_TEMPLATE
void memoryCopy( T* dest,
const T* src,
unsigned int size ) {
35 for(
unsigned int i=0; i<size; i++ ) {
44 inline FARSA_NNFW_TEMPLATE
void memoryZeroing( T* data,
unsigned int size ) {
45 for(
unsigned int i=0; i<size; i++ ) {
53 inline FARSA_NNFW_TEMPLATE
void memoryCopy(
float* dest,
const float* src,
unsigned int size ) {
54 memcpy( dest, src,
sizeof(
float)*size );
60 inline FARSA_NNFW_TEMPLATE
void memoryZeroing(
float* data,
unsigned int size ) {
61 memset( data, 0,
sizeof(
float)*size );
67 inline FARSA_NNFW_TEMPLATE
void memoryCopy(
double* dest,
const double* src,
unsigned int size ) {
68 memcpy( dest, src,
sizeof(
double)*size );
74 inline FARSA_NNFW_TEMPLATE
void memoryZeroing(
double* data,
unsigned int size ) {
75 memset( data, 0,
sizeof(
double)*size );
81 inline FARSA_NNFW_TEMPLATE
void memoryCopy(
bool* dest,
const bool* src,
unsigned int size ) {
82 memcpy( dest, src,
sizeof(
bool)*size );
88 inline FARSA_NNFW_TEMPLATE
void memoryZeroing(
bool* data,
unsigned int size ) {
89 memset( data, 0,
sizeof(
bool)*size );
This file contains the common type defitions used on the whole framework.
FARSA_NNFW_TEMPLATE void memoryCopy(T *dest, const T *src, unsigned int size)
template for memory copy of data
FARSA_NNFW_TEMPLATE void memoryZeroing(T *data, unsigned int size)
template for memory zeroing of data