Merge pull request #253 from haneefmubarak/memcpy-rep-movsb-windows-201

resolve #201 with a platform-selective REP MOVSB implementation
This commit is contained in:
Daan 2021-01-29 16:00:00 -08:00 committed by GitHub
commit 9b966c3492
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 29 additions and 10 deletions

View file

@ -103,7 +103,7 @@ mi_decl_restrict unsigned short* mi_wcsdup(const unsigned short* s) mi_attr_noex
size_t size = (len+1)*sizeof(unsigned short);
unsigned short* p = (unsigned short*)mi_malloc(size);
if (p != NULL) {
memcpy(p,s,size);
_mi_memcpy(p,s,size);
}
return p;
}