Improve memcopy/memmove

Thanks to DerTeufel!

Change-Id: Ie549325afdb82a9ba265c6804e72778cf6bb51de