Introduce some memory copy macros and functions