backport of memcpy ifunc work to 2.17