[PATCH 2/4] include: Implement __stosb compiler intrinsic.
Piotr Caban
piotr.caban at gmail.com
Mon Sep 13 09:58:55 CDT 2021
On 9/13/21 4:51 PM, Piotr Caban wrote:
> On 9/13/21 2:23 PM, Rémi Bernon wrote:
>> +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");
>> +}
> I don't know if it's important here but Microsoft's i386 cdecl abi
> specifies direction flag value on function call. Maybe if __cdecl is
> added cld call may be removed.
One more thing - shouldn't %ecx be also added as output so gcc knows
that it has changed?
More information about the wine-devel
mailing list