We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5438

Summary: [PATCH] Implement PAUSE_INSTRUCTION for Windows on ARM
Product: SDL Reporter: Cameron Gutman <cameron.gutman>
Component: atomicAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: ARM   
OS: Windows 10   
Attachments: Patch

Description Cameron Gutman 2021-01-02 19:47:14 UTC
MSVC has a __yield() intrinsic for ARM/ARM64 to generate the YIELD instruction for the inside of spinlock loops. Let's go ahead and use it.
Comment 1 Cameron Gutman 2021-01-02 19:47:52 UTC
Created attachment 4630 [details]
Patch
Comment 2 Sam Lantinga 2021-01-03 18:21:54 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/240db31a2e01