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 4967

Summary: [PATCH] Improved CPU detection on ARM platforms
Product: SDL Reporter: Cameron Cawley <ccawley2011>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: ARM   
OS: All   
Bug Depends on:    
Bug Blocks: 4984    
Attachments: Improved CPU detection on ARM platforms

Description Cameron Cawley 2020-02-05 12:19:34 UTC
Created attachment 4191 [details]
Improved CPU detection on ARM platforms

__ARM_ARCH is not defined with GCC 4.7, as used on RISC OS. In addition, from what I understand, SIMD instructions are guaranteed to be available when building SDL for ARMv6 or later, so this patch also adds compile-time checks for that as well. As a result, this means SDL_HasARMSIMD() now works correctly on AArch64.
Comment 1 Sam Lantinga 2020-02-15 00:22:31 UTC
This looks good, thanks!
https://hg.libsdl.org/SDL/rev/604325956b9a