2 #include <../../nrnconf.h> 29 #if defined(WIN32) || MAC 30 #define STDC_HEADERS 1 36 void Memory::copy(
const void* from,
void* to,
unsigned int nbytes) {
38 BlockMove(from, to, nbytes);
39 #elif defined(STDC_HEADERS) // ANSI C memmove and memset: 40 memmove(to, from,
size_t(nbytes));
41 #elif defined(HAVE_BCOPY) 42 bcopy(from, to, nbytes);
44 #error "Neither bcopy nor mmove is defined." 49 return memcmp(b1, b2, nbytes) != 0;
53 memset(b, 0,
size_t(nbytes));
static int compare(const void *, const void *, unsigned int nbytes)
static void zero(void *, unsigned int nbytes)
static void copy(const void *from, void *to, unsigned int nbytes)