Signed-off-by: Rémi Bernon rbernon@codeweavers.com --- include/msvcrt/intrin.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/msvcrt/intrin.h b/include/msvcrt/intrin.h index 8b84929bc02..bc8a7e20ff7 100644 --- a/include/msvcrt/intrin.h +++ b/include/msvcrt/intrin.h @@ -24,6 +24,10 @@ static inline void __cpuid(int info[4], int ax) { return __cpuidex(info, ax, 0); } +static inline void __stosb(unsigned char* dst, unsigned char c, size_t n) +{ + __asm__ __volatile__ ("cld; rep; stosb" : "=D"(dst) : "a"(c), "D"(dst), "c"(n) : "memory", "cc"); +} #endif
#ifdef __aarch64__