just another speed Q, whats faster memcpy or memmove?
just wondering, I've some buffer funcs for screen shifting (left, right,up,down etc), e.g
and was wondering if a move would be faster / slower?
-B
just wondering, I've some buffer funcs for screen shifting (left, right,up,down etc), e.g
- Code:
void move_buffer_down(int x, int y,int size, PIXEL* source)
{
int xs = x * size;
int xy = x * y;
memcpy(screen_temp_p + xs,source, (xy - xs) * 2);
memcpy(screen_temp_p,source + xy - xs, xs * 2);
memcpy(source,screen_temp_p, xy * 2);
}
and was wondering if a move would be faster / slower?
-B