limit memcpy as rep stosb to windows where the cpu supporst FSRM; add mi_memcpy_aligned for machine-word aligned copy. see issue #201 and pr #253

This commit is contained in:
Daan Leijen 2021-01-30 14:33:46 -08:00
parent 92ec493a5d
commit 35c1fc2be9
6 changed files with 77 additions and 24 deletions

View file

@ -17,7 +17,7 @@ terms of the MIT license. A copy of the license can be found in the file
// ------------------------------------------------------
#include <errno.h>
#include <string.h> // memcpy
#include <string.h> // memset
#include <stdlib.h> // getenv
#ifdef _MSC_VER