[PATCH 0/1] MR7000: include: Use inline assembly on Clang MSVC mode in YieldProcessor().
11 Dec
11 Dec
7:40 p.m.
New subject: [PATCH 1/1] include: Use inline assembly on Clang MSVC mode in YieldProcessor().
From: William Horvath <william(a)horvath.blog> Otherwise, YieldProcessor() is a no-op. --- include/winnt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/winnt.h b/include/winnt.h index 0dae6a05b99..045919dc6d9 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -7386,7 +7386,7 @@ static FORCEINLINE unsigned char InterlockedCompareExchange128( volatile __int64 static FORCEINLINE void YieldProcessor(void) { -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) #if defined(__i386__) || defined(__x86_64__) __asm__ __volatile__( "rep; nop" : : : "memory" ); #elif defined(__arm__) || defined(__aarch64__) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7000
373
Age (days ago)
373
Last active (days ago)
1 comments
2 participants
participants (2)
-
William Horvath -
William Horvath (@whrvth)