Use the system memset and memcpy

This is the way ioquake3 does it.