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 - [PATCH] Implement PAUSE_INSTRUCTION for Windows on ARM
Summary: [PATCH] Implement PAUSE_INSTRUCTION for Windows on ARM
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: atomic (show other bugs)
Version: HG 2.0
Hardware: ARM Windows 10
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 19:47 UTC by Cameron Gutman
Modified: 2021-01-03 18:21 UTC (History)
0 users

See Also:


Attachments
Patch (1.04 KB, patch)
2021-01-02 19:47 UTC, Cameron Gutman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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