(1) removing unwanted memcpy to improve performance
(2) code formatting

2 files changed