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 - [PATCH] Improved CPU detection on ARM platforms
Summary: [PATCH] Improved CPU detection on ARM platforms
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: ARM All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks: 4984
  Show dependency treegraph
 
Reported: 2020-02-05 12:19 UTC by Cameron Cawley
Modified: 2020-02-15 00:22 UTC (History)
0 users

See Also:


Attachments
Improved CPU detection on ARM platforms (1.98 KB, patch)
2020-02-05 12:19 UTC, Cameron Cawley
Details | Diff

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