g_memmove() (another RAM quickie)
- From: Derek Simkowiak <dereks kd-dev com>
- To: gtk-list redhat com
- Subject: g_memmove() (another RAM quickie)
- Date: Thu, 9 Mar 2000 14:03:41 -0800 (PST)
#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]