g_memmove() (another RAM quickie)




#define     g_memmove(dest, src, num_bytes)

	Does the difference between dest & src affect the execution time
of a memmove() (or bcopy() )?  That is, will

/* move ten bytes not very far */
g_memmove(pointer, pointer + 5, 10 )

	...go faster than...

/* move ten bytes a little farther */
g_memmove(pointer, pointer + 9999, 10 )

	This would be for an overlapping region of memory.

	Again, any references/docs/FAQs to read are greatly appreciated.


Thank You,
Derek Simkowiak
dereks@kd-dev.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]