Revert "lib: Improve the performance of memcpy and memmove of the general version"

This reverts commit 63a54ae605a8d1272dd7b1cd9bef8ca00bfba834.